nicetoolbox.evaluation.config_handler.ConfigHandler¶
- class nicetoolbox.evaluation.config_handler.ConfigHandler(eval_config_file: str, machine_specifics_file: str)[source]¶
Bases:
objectHandles loading and parsing of configuration files for evaluation.
- Parameters:
eval_config_file (str) – Path to the evaluation configuration TOML file.
machine_specifics_file (str) – Path to the machine-specifics TOML file.
Methods
Generator that yields tuples of (RunConfig, DatasetProperties, EvaluationConfig) for each dataset defined in the run configurations.
Save the effective configuration for the overall evaluation experiment run.
Attributes
cfg_loaderauto_placeholdersruntime_placeholdersmachine_specific_configglobal_settingsio_configmetric_type_configssummaries_configsexperiment_configexperiment_iocomponent_algorithm_mappingall_run_configsall_dataset_properties- get_evaluation_and_dataset_configs() Iterator[Tuple][source]¶
Generator that yields tuples of (RunConfig, DatasetProperties, EvaluationConfig) for each dataset defined in the run configurations.
Each tuple defines a task for the EvaluationEngine to process. This method is thus the main loop over datasets and their evaluation settings and tasks.
- Yields:
Iterator[Tuple[RunConfig, DatasetProperties, EvaluationConfig]] – Tuples containing the run configuration, dataset properties, and evaluation configuration for each dataset.
- save_experiment_config(output_folder: Path) None[source]¶
Save the effective configuration for the overall evaluation experiment run. This includes the evaluation config, run config, dataset properties, detector config, and machine-specific config.
- Parameters:
output_folder (Path) – The folder where the configuration will be saved.