selector.best_conf
This module sorts the configurations by performance within an iteration and declares the overall best and saves it in a file.
Functions
|
Compute and sort by performances. |
|
Reads in the run history. |
|
Save performances dictionary and overall best configuration. |
- selector.best_conf.compute_performances(path, penalty)[source]
Compute and sort by performances.
- Parameters:
path (str) – Path to the log folder.
penalty (float) – Penalty for non-solved instances.
- Returns:
performances_of_winners : list, Performances of the winners.
tournament_history : dict, The tournament history.
runhistory : dict, The run history.
- Return type:
tuple
- selector.best_conf.read_run_hstory(path, penalty)[source]
Reads in the run history.
- Parameters:
path (str) – Path to the log folder.
penalty (float) – Penalty for non-solved instances.
- Returns:
runhistory : dict, The run history.
tournament_history : dict, The tournament history.
- Return type:
tuple of dict