pyhgf.updates.prediction_error.nodes.dirichlet.update_cluster#

pyhgf.updates.prediction_error.nodes.dirichlet.update_cluster(operands: Tuple, edges: Tuple[AdjacencyLists, ...], node_idx: int) Dict[int, Dict][source]#

Update an existing cluster.

Parameters:
operands

Non-static parameters.

edges

The edges of the neural network as a tuple of pyhgf.typing.Indexes. The tuple has the same length as node number. For each node, the index lists the value/volatility parents/children.

node_idx

Pointer to the Dirichlet process input node.

Returns:
attributes

The attributes of the probabilistic nodes.