pyhgf.updates.vectorized.volatile.vectorized_layer_prediction#

pyhgf.updates.vectorized.volatile.vectorized_layer_prediction(child_state, parent_state, weights, params, time_step, coupling_fn=<PjitFunction of <function tanh>>, parent_has_constant=False)[source]#

Predict expected mean/precision for all nodes in child layer (volatile node).

This implements the full volatile node prediction with both value level and volatility level predictions.

Parameters:
  • child_state (LayerState) – Current state of the child layer (being predicted).

  • parent_state (LayerState) – Current state of the parent layer (predictor).

  • weights (Array) – Weight matrix connecting child to parent, shape (n_children, n_parents) or (n_children, n_parents + 1) when the parent layer includes a constant input node.

  • params (LayerParams) – Layer parameters for the child layer.

  • time_step (float) – Time step for the prediction.

  • coupling_fn (Callable) – Coupling function applied to parent means (default: tanh).

  • parent_has_constant (bool) – If True, the parent layer has a constant input node (mean = 1.0) appended to its activations. The last column of weights carries the bias connections.

Returns:

Updated child layer state with expected values filled in.

Return type:

LayerState