pyhgf.utils.fill_categorical_state_node#

pyhgf.utils.fill_categorical_state_node(network: Network, node_idx: int, binary_input_idxs: List[int], binary_parameters: Dict) Network[source]#

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

Parameters:
network

Instance of a Network.

node_idx

Index to the categorical state node.

binary_input_idxs

The idexes of the binary input nodes.

binary_parameters

Parameters for the set of implied binary HGFs.

Returns:
hgf

The updated instance of the HGF model.