pyhgf.utils.fill_categorical_state_node#

pyhgf.utils.fill_categorical_state_node(network, node_idx, binary_states_idxs, binary_parameters)[source]#

Generate a binary network implied by categorical state(-transition) nodes.

Parameters:
  • network (Network) – Instance of a Network.

  • node_idx (int) – Index to the categorical state node.

  • binary_states_idxs (list[int]) – The indexes of the binary state nodes.

  • binary_parameters (dict) – Parameters for the set of implied binary HGFs.

Returns:

The updated instance of the HGF model.

Return type:

hgf