pyhgf.model.add_volatile_state#

pyhgf.model.add_volatile_state(network, n_nodes, value_parents, value_children, node_parameters, additional_parameters, coupling_fn)[source]#

Add a continuous state node with an implicit continuous volatility parent.

This node type combines a continuous node with an implicit volatility parent. The volatility parent modulates the child’s precision, enabling dynamic learning rates in predictive coding networks with fewer explicit nodes.

note::

Parameters relative to the volatility level (e.g., “mean_vol”, “expected_mean_vol”, etc.) are included in the node’s attributes using the suffix “_vol”.

Parameters:
  • network (Network)

  • n_nodes (int)

  • value_parents (tuple)

  • value_children (tuple)

  • node_parameters (dict)

  • additional_parameters (dict)

  • coupling_fn (tuple[Optional[Callable], ...])