pyhgf.model.add_constant_state#
- pyhgf.model.add_constant_state(network, n_nodes, value_children, volatility_children, node_parameters, coupling_fn)[source]#
Add constant-state (bias) node(s) to a network.
Constant-state nodes hold a fixed mean of 1.0 and precision of 1.0 (fully known bias). They are always wired to their children linearly (
coupling_fnis forced toNone), have no prediction or update steps, and can only have children, never parents.- Parameters:
network (Network)
n_nodes (int)
value_children (tuple)
volatility_children (tuple)
node_parameters (dict)
coupling_fn (tuple[Optional[Callable], ...])