pyhgf.updates.prediction_error.dirichlet.update_cluster#

pyhgf.updates.prediction_error.dirichlet.update_cluster(operands, edges, node_idx)[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.

Parameters:
  • operands (Tuple)

  • edges (Tuple[AdjacencyLists, ...])

  • node_idx (int)

Return type:

Dict[int | str, Dict]