mlpy.mdp.stateaction.MDPPrimitive.set_dtype

classmethod MDPPrimitive.set_dtype(value=<Mock name='mock.float64' id='140154010937552'>)[source]

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.