mlpy.mdp.discrete.DiscreteModel.add_state

DiscreteModel.add_state(state)[source]

Add a new state to the statespace.

Add a new state to the statespace (a collection of states that have already been seen).

Parameters:

state : State

The state to add to the state space.

Returns:

bool :

Whether the state was a new state or not.