q_learning#

q_learning(values, reward, maximum, alpha, gamma)[source]#

The updated values of cpm.models.learning.QLearningRule.

Like the class, values that are not positive are not treated as active: the update of each value is scaled by 1 if it is positive, and by the value itself otherwise.