pyhgf.updates.prediction_error.continuous.continuous_node_prediction_error#
- pyhgf.updates.prediction_error.continuous.continuous_node_prediction_error(attributes, node_idx, edges, **args)[source]#
Store prediction errors in an input node.
See [1] for more details.
Note
The parameter structure also incorporates the value and volatility coupling strength with children and parents (i.e. “value_coupling_parents”, “value_coupling_children”, “volatility_coupling_parents”, “volatility_coupling_children”).
- Parameters:
attributes (dict) – The attributes of the probabilistic nodes.
node_idx (int) – Pointer to the continuous node.
edges (tuple[AdjacencyLists, ...]) – The edges of the probabilistic nodes as a tuple of
pyhgf.typing.AdjacencyLists. The tuple has the same length as the node number. For each node, the index lists the value and volatility parents and children.
- Returns:
The updated attributes of the probabilistic nodes.
- Return type:
References
[1]Weber, L. A., Waade, P. T., Legrand, N., Møller, A. H., Stephan, K. E., & Mathys, C. (2026). The generalized hierarchical Gaussian filter. doi:10.7554/elife.110174.1