kaira.benchmarks.BenchmarkConfig

Inheritance diagram for BenchmarkConfig
- class kaira.benchmarks.BenchmarkConfig(name: str = 'default', description: str = '', seed: int = 42, device: str = 'auto', num_trials: int = 1, timeout_seconds: float | None = None, verbose: bool = True, save_results: bool = True, output_directory: str = './benchmark_results', save_plots: bool = True, save_raw_data: bool = False, batch_size: int = 1000, num_workers: int = 1, memory_limit_mb: float | None = None, snr_range: ~typing.List[float] = <factory>, block_length: int = 1000, code_rate: float = 0.5, model_precision: str = 'float32', compile_model: bool = False, calculate_confidence_intervals: bool = True, confidence_level: float = 0.95, custom_params: ~typing.Dict[str, ~typing.Any] = <factory>)[source]
Bases:
objectConfiguration for benchmark execution.
Methods
Create config from dictionary.
Create config from JSON string.
Get configuration parameter.
Load configuration from file.
Save configuration to file.
Convert config to dictionary.
Convert config to JSON string.
Update configuration parameters.
Attributes
- classmethod from_dict(config_dict: Dict[str, Any]) BenchmarkConfig[source]
Create config from dictionary.
- classmethod from_json(json_str: str) BenchmarkConfig[source]
Create config from JSON string.
- classmethod load(filepath: str | Path) BenchmarkConfig[source]
Load configuration from file.
- __init__(name: str = 'default', description: str = '', seed: int = 42, device: str = 'auto', num_trials: int = 1, timeout_seconds: float | None = None, verbose: bool = True, save_results: bool = True, output_directory: str = './benchmark_results', save_plots: bool = True, save_raw_data: bool = False, batch_size: int = 1000, num_workers: int = 1, memory_limit_mb: float | None = None, snr_range: ~typing.List[float] = <factory>, block_length: int = 1000, code_rate: float = 0.5, model_precision: str = 'float32', compile_model: bool = False, calculate_confidence_intervals: bool = True, confidence_level: float = 0.95, custom_params: ~typing.Dict[str, ~typing.Any] = <factory>) None