pyhgf.updates.prediction_error.binary.binary_finite_state_node_prediction_error#

pyhgf.updates.prediction_error.binary.binary_finite_state_node_prediction_error(attributes, node_idx, edges, **args)[source]#

Update the posterior of a binary node given finite precision of the input.

See [1] for more details.

Parameters:
  • attributes (dict) – The attributes of the probabilistic nodes.

  • node_idx (int) – Pointer to the node that needs to be updated. After continuous updates, the parameters of value and volatility parents (if any) will be different.

  • edges (tuple[AdjacencyLists, ...]) – The edges of the probabilistic nodes as a tuple of pyhgf.typing.Indexes. 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:

attributes

References

[1]

Weber, L. A., Waade, P. T., Legrand, N., Møller, A. H., Stephan, K. E., & Mathys, C. (2023). The generalized Hierarchical Gaussian Filter (Version 1). arXiv. https://doi.org/10.48550/ARXIV.2305.10937