smac.utils.multi_objective¶
Functions¶
|
Normalizes a list of floats with corresponding bounds. |
Interfaces¶
- smac.utils.multi_objective.normalize_costs(values, bounds=None)[source]¶
Normalizes a list of floats with corresponding bounds.
- Parameters:
values (list[float]) – List of costs to be normalized.
bounds (list[tuple[float, float]] | None, optional, defaults to None) – List of tuple of bounds. If no bounds are passed, the input is returned.
- Returns:
normalized_costs – Normalized costs based on the bounds. If no bounds are given, the original values are returned. Also, if min and max bounds are the same, the value of the corresponding objective is set to 1.
- Return type:
list[float]