deephyper.skopt.moo.MoScalarFunction#
- class deephyper.skopt.moo.MoScalarFunction(n_objectives: int = 1, weight=None, weight_sampling_periode: int = 1, utopia_point=None, random_state=None)[source]#
Bases:
ABC
Abstract class representing a scalarizing function.
- Parameters:
n_objectives (int, optional) – Number of objective functions. Defaults to
1
.weight (float or 1-D array, optional) – Array of weights for each objective function. Defaults to
None
.weight_sampling_periode (int, optional) – Sampling periode for the weight vector. Defaults to
5
.utopia_point (float or 1-D array, optional) – Array of reference values for each objective function. Defaults to
None
.random_state (int, optional) – Random seed. Defaults to
None
.
Methods
Compute normalization constants based on the history of evaluated objective values.
Convert the input array (or scalar) into a scalar value.
update_weight
- normalize(yi)[source]#
Compute normalization constants based on the history of evaluated objective values.
- Parameters:
yi (array) – Array of evaluated objective values.
- Raises:
ValueError – Raised if yi is not a list of scalars each of length _n_objectives.