smac.utils.multi_objective

Functions

normalize_costs(values[, bounds])

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) – List of tuple of bounds. By default None. If no bounds are passed, the values are returned unnormalized.

Returns:

normalized_costs – Normalized costs based on the bounds. If no bounds are given, the values are returned unnormalized. Also, if min and max bounds are the same, the value of the corresponding objective is set to 1.

Return type:

list[float]