mlpy.agents.fsm.StateMachine.set_state

StateMachine.set_state(state)[source]

Set the current state.

Parameters:

state : str or FSMState

The (name of the) state.

Raises:

ValueError

If the state is not a string or an instance of FSMState.