mlpy.mdp.stateaction.MDPPrimitive.decode

classmethod MDPPrimitive.decode(_repr)[source]

Decodes the state into its original representation.

Parameters:

_repr : tuple

The readable representation of the primitive.

Returns:

State :

The decoded state.

Notes

Optionally this method can be overwritten at runtime.

Examples

>>> def my_decode(cls, _repr)
...     pass
...
>>> MDPPrimitive.decode = classmethod(my_decode)