mlpy.mdp.discrete.DiscreteModel.update

DiscreteModel.update(experience=None)[source]

Update the model with the agent’s experience.

Parameters:

experience : Experience

The agent’s experience, consisting of state, action, next state(, and reward).

Returns:

bool :

Return True if the model has changed, False otherwise.