pyhgf.updates.vectorised.continuous.vectorised_continuous_value_prediction_error#

pyhgf.updates.vectorised.continuous.vectorised_continuous_value_prediction_error(layer)[source]#

Compute the value prediction error for all nodes in a continuous layer.

This is the vectorised equivalent of pyhgf.updates.prediction_error.continuous.continuous_node_value_prediction_error():

\[\delta_a^{(k)} = \mu_a^{(k)} - \hat{\mu}_a^{(k)}.\]
Parameters:

layer (LayerState) – Current layer with mean and expected_mean set.

Returns:

Updated layer state with value_prediction_error set.

Return type:

LayerState