pyhgf.updates.vectorized.volatile.vectorized_layer_value_prediction_error#

pyhgf.updates.vectorized.volatile.vectorized_layer_value_prediction_error(layer, n_parents)[source]#

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

This is the vectorized equivalent of pyhgf.updates.prediction_error.volatile.volatile_node_value_prediction_error().

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

  • n_parents (int) – Number of value parents for this layer (for normalization).

Returns:

Updated layer state with value_prediction_error set.

Return type:

LayerState