mlpy.agents.fsm.StateMachine.get_state

StateMachine.get_state(state)[source]

Return the FSMState instance with the given name.

Parameters:

state : str

The name of the state to retrieve.

Returns:

FSMState :

The state.

Raises:

ValueError

If the state is not a registered state.