mlpy.agents.fsm.StateMachine.clear_events

StateMachine.clear_events(state_name=None)[source]

Clear all events.

If state_name is given, the events are only cleared for the given state.

Parameters:

state_name : str

The name of the state for which to clear all events. If None all events are removed. Default is None.