pyhgf.updates.vectorized.volatile.vectorized_layer_volatility_prediction_error#

pyhgf.updates.vectorized.volatile.vectorized_layer_volatility_prediction_error(layer)[source]#

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

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

Parameters:

layer (LayerState) – Current layer. Must already carry an up-to-date value_prediction_error (set by vectorized_layer_value_prediction_error()).

Returns:

Updated layer state with volatility_prediction_error set.

Return type:

LayerState