pyhgf.updates.prediction_error.dirichlet.create_cluster#
- pyhgf.updates.prediction_error.dirichlet.create_cluster(operands: Tuple, edges: Tuple[AdjacencyLists, ...], node_idx: int) Dict[int | str, Dict] [source]#
Create a new 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.