pyhgf.model.add_continuous_state#
- pyhgf.model.add_continuous_state(network, n_nodes, value_parents, volatility_parents, value_children, volatility_children, node_parameters, additional_parameters, coupling_fn)[source]#
Add continuous state node(s) to a network.
- Parameters:
network (Network) – The neural network to which the node(s) are added.
n_nodes (int) – The number of identical node(s) to add.
value_parents (tuple) – The value parents of the node(s), as a tuple of indexes and coupling strengths.
volatility_parents (tuple) – The volatility parents of the node(s), as a tuple of indexes and coupling strengths.
value_children (tuple) – The value children of the node(s), as a tuple of indexes and coupling strengths.
volatility_children (tuple) – The volatility children of the node(s), as a tuple of indexes and coupling strengths.
node_parameters (dict) – A dictionary of parameters overriding the node defaults.
additional_parameters (dict) – Additional parameters passed as keyword arguments, validated against the node defaults.
coupling_fn (tuple[Optional[Callable], ...]) – The coupling function(s) between the node(s) and their value children.
Noneimplies linear coupling.
- Returns:
The updated neural network.
- Return type:
network