mlpy.mdp.stateaction.Action.set_minmax_features

Action.set_minmax_features(_min, _max)

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:

_min : array_like, shape(nfeatures,)

The minimum value for each feature

_max : array_like, shape(nfeatures,)

The maximum value for each feature

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.