smac.utils.pareto_front

Functions

calculate_pareto_front(runhistory, configs, ...)

Compares the passed configurations and returns only the ones on the pareto front.

sort_by_crowding_distance(runhistory, ...)

Sorts the passed configurations by their crowding distance.

Interfaces

smac.utils.pareto_front.calculate_pareto_front(runhistory, configs, config_instance_seed_budget_keys)[source]

Compares the passed configurations and returns only the ones on the pareto front.

Parameters:
  • runhistory (RunHistory) – The runhistory containing the given configurations.

  • configs (list[Configuration]) – The configurations from which the Pareto front should be computed.

  • config_instance_seed_budget_keys (list[list[InstanceSeedBudgetKey]]) – The instance-seed budget keys for the configurations on the basis of which the Pareto front should be computed.

Returns:

pareto_front – The pareto front computed from the given configurations.

Return type:

list[Configuration]

smac.utils.pareto_front.sort_by_crowding_distance(runhistory, configs, config_instance_seed_budget_keys)[source]

Sorts the passed configurations by their crowding distance. Taken from https://github.com/anyoptimization/pymoo/blob/20abef1ade71915352217400c11ece4c2f35163e/pymoo/algorithms/nsga2.py

Parameters:
  • runhistory (RunHistory) – The runhistory containing the given configurations.

  • configs (list[Configuration]) – The configurations which should be sorted.

  • config_instance_seed_budget_keys (list[list[InstanceSeedBudgetKey]]) – The instance-seed budget keys for the configurations which should be sorted.

Returns:

sorted_list – Configurations sorted by crowding distance.

Return type:

list[Configuration]