mlpy.mdp.stateaction.MDPPrimitive.set_minmax_features¶
-
classmethod
MDPPrimitive.
set_minmax_features
(minmax, *args)[source]¶ Sets the minimum and maximum value for each feature.
This extracts the number of features from the _min and _max values and ensures that it matches with nfeatures. If nfeatures is None, the nfeatures attribute is set to the extracted value.
Parameters: minmax : array_like, shape(2,)
The minimum and maximum value for the first feature
args : tuple
Min-max arrays for additional features
Raises: ValueError
If the arrays are not one-dimensional vectors, the shapes of the arrays don’t match, or the number of features does not agree with the attribute nfeatures.