mlpy.mdp.stateaction.State.set_nfeatures

State.set_nfeatures(n)

Set the number of features.

Parameters:

n : int

The number of features.

Raises:

ValueError

If n is not of type integer.