Pareto front
smac.utils.pareto_front
#
calculate_pareto_front
#
calculate_pareto_front(
runhistory: RunHistory,
configs: list[Configuration],
config_instance_seed_budget_keys: list[
list[InstanceSeedBudgetKey]
],
) -> list[Configuration]
Compares the passed configurations and returns only the ones on the pareto front.
| PARAMETER | DESCRIPTION |
|---|---|
runhistory
|
The runhistory containing the given configurations.
TYPE:
|
configs
|
The configurations from which the Pareto front should be computed.
TYPE:
|
config_instance_seed_budget_keys
|
The instance-seed budget keys for the configurations on the basis of which the Pareto front should be computed.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
pareto_front
|
The pareto front computed from the given configurations.
TYPE:
|
Source code in smac/utils/pareto_front.py
sort_by_crowding_distance
#
sort_by_crowding_distance(
runhistory: RunHistory,
configs: list[Configuration],
config_instance_seed_budget_keys: list[
list[InstanceSeedBudgetKey]
],
) -> list[Configuration]
Sorts the passed configurations by their crowding distance. Taken from github.com/anyoptimization/pymoo/blob/20abef1ade71915352217400c11ece4c2f35163e/pymoo/algorithms/nsga2.py
| PARAMETER | DESCRIPTION |
|---|---|
runhistory
|
The runhistory containing the given configurations.
TYPE:
|
configs
|
The configurations which should be sorted.
TYPE:
|
config_instance_seed_budget_keys
|
The instance-seed budget keys for the configurations which should be sorted.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
sorted_list
|
Configurations sorted by crowding distance.
TYPE:
|