mlpy.mdp.stateaction.State.decode

State.decode(_repr)

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)