pyhgf.updates.prediction_error.binary.binary_state_node_prediction_error#

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

Compute the value prediction errors and predicted precision of a binary node.

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

  • node_idx (int) – Pointer to the binary state node.

  • edges (tuple[AdjacencyLists, ...]) – The edges of the probabilistic nodes as a tuple of pyhgf.typing.AdjacencyLists. For each node, the entry lists its value/volatility parents and children.

Returns:

The attributes of the probabilistic nodes.

Return type:

attributes