Scalarizer¶
-
class
desdeo_tools.scalarization.
Scalarizer
(evaluator, scalarizer, evaluator_args=None, scalarizer_args=None)[source]¶ Bases:
object
Implements a class for scalarizing vector valued functions with a given scalarization function.
Methods Summary
__call__
(xs)Wrapper to the evaluate method.
evaluate
(xs)Evaluates the scalarized function with the given arguments and returns a scalar value for each vector of variables given in a numpy array.
Methods Documentation
-
evaluate
(xs)[source]¶ Evaluates the scalarized function with the given arguments and returns a scalar value for each vector of variables given in a numpy array.
- Parameters
xs (np.ndarray) – A 2D numpy array containing vectors of variables
each of its rows. (on) –
- Returns
A 1D numpy array with the values returned by the scalarizer for each row in xs.
- Return type
np.ndarray
-