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_performances(path, penalty)

Compute and sort by performances.

read_run_hstory(path, penalty)

Reads in the run history.

safe_best(path, penalty)

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

selector.best_conf.safe_best(path, penalty)[source]

Save performances dictionary and overall best configuration.

Parameters:
  • path (str) – Path to the log folder.

  • penalty (float) – Penalty for non-solved instances.

Returns:

The overall best configuration.

Return type:

dict