pyhgf.updates.prediction.volatile.volatile_node_prediction_mean_field#
- pyhgf.updates.prediction.volatile.volatile_node_prediction_mean_field(attributes, node_idx, edges, **args)[source]#
Update the expected mean and expected precision of a value-volatility node.
This node has two internal levels: 1. Volatility level (implicit, internal) 2. Value level (external facing)
The volatility level predicts first, then affects the value level’s precision.
- Parameters:
attributes (dict) – The attributes of the probabilistic nodes.
node_idx (int) – Pointer to the volatile-state node that will be updated.
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 updated attributes of the probabilistic nodes.
- Return type: