mlpy.mdp.stateaction.State.encode

State.encode()

Encodes the state into a human readable representation.

Returns:

ndarray :

The encoded state.

Notes

Optionally this method can be overwritten at runtime.

Examples

>>> def my_encode(self)
...     pass
...
>>> MDPPrimitive.encode = my_encode