results module¶
A class to collect the paths to performance histories.
- class gemseo_benchmark.results.results.Results(path=None)[source]¶
Bases:
object
A collection of paths to performance histories.
- Parameters:
path (str | Path | None) – The path to the JSON file from which to load the paths. If
None
, the collection is initially empty.
- add_path(algorithm_configuration_name, problem_name, path)[source]¶
Add a path to a performance history.
- Parameters:
- Raises:
FileNotFoundError – If the path to the history does not exist.
- Return type:
None
- from_file(path)[source]¶
Load paths to performance histories from a JSON file.
- Parameters:
path (str | Path) – The path to the JSON file.
- Return type:
None
- get_paths(algo_name, problem_name)[source]¶
Return the paths associated with an algorithm and a problem.
- Parameters:
- Returns:
The paths to the performance histories.
- Raises:
ValueError – If the algorithm name is unknown, or if the problem name is unknown.
- Return type:
- get_problems(algo_name)[source]¶
Return the names of the problems for a given algorithm configuration.
- Parameters:
algo_name (str) – The name of the algorithm configuration.
- Returns:
The names of the problems.
- Raises:
ValueError – If the algorithm configuration name is unknown.
- Return type: