pyhgf.updates.prediction_error.volatile.volatile_node_prediction_error#

pyhgf.updates.prediction_error.volatile.volatile_node_prediction_error(attributes, node_idx, edges, update_type, max_posterior_precision=10000000000.0, **args)[source]#

Apply prediction errors and posterior updates to the volatility parent.

  • Value PE: for external value parents (if any)

  • Volatility PE: for the implicit internal volatility level

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

  • node_idx (int) – Pointer to the volatile node that needs to be updated.

  • edges (tuple[AdjacencyLists, ...]) – The edges of the probabilistic nodes as a tuple of pyhgf.typing.Indexes.

  • update_type (str) – The type of volatility-level posterior update. One of "eHGF", "standard" or "unbounded".

  • max_posterior_precision (float) – Upper bound forwarded to the volatility-level posterior update and applied to the resulting precision write. Default 1e10.

Return type:

dict