mlpy.mdp.stateaction.State.set_dtype

State.set_dtype(value=<Mock name='mock.float64' id='140154010937552'>)

Set the feature’s data type.

Parameters:

value : {DTYPE_FLOAT, DTYPE_INT, DTYPE_OBJECT}

The data type.

Raises:

ValueError

If the data type is not one of the allowed types.