separable_rule#

separable_rule(weights, feedback, input, alpha)[source]#

The change in the weights and the prediction errors of cpm.models.learning.SeparableRule.

Returns:
changenumpy.ndarray

The change in weights, with the same shape.

errornumpy.ndarray

The prediction error of each outcome-stimulus pair, with the same shape.