smac.multi_objective.aggregation_strategy¶
Classes¶
|
A class to mean-aggregate multi-objective costs to a single cost. |
Interfaces¶
- class smac.multi_objective.aggregation_strategy.MeanAggregationStrategy(scenario, objective_weights=None)[source]¶
Bases:
AbstractMultiObjectiveAlgorithm
A class to mean-aggregate multi-objective costs to a single cost.
- Parameters:
scenario (Scenario) –
objective_weights (list[float] | None, defaults to None) – Weights for an weighted average. Must be of the same length as the number of objectives.
- __call__(values)[source]¶
Transform a multi-objective loss to a single loss.
- Parameters:
values (list[float]) – Normalized values in the range [0, 1].
- Returns:
cost – Combined cost.
- Return type:
float
- property meta: dict[str, Any]¶
Returns the meta data of the created object.