pyhgf.updates.vectorised.continuous.vectorised_continuous_posterior_update_ehgf#

pyhgf.updates.vectorised.continuous.vectorised_continuous_posterior_update_ehgf(layer, value_child=None, volatility_child=None, time_step=1.0, max_posterior_precision=10000000000.0, mean_field_updates=False)[source]#

Enhanced-HGF posterior update: mean first, then the safe precision.

This is the vectorised equivalent of pyhgf.updates.posterior.continuous.continuous_node_posterior_update_ehgf(): the mean update approximates the node precision with the expected precision, and the volatility-coupling precision increment is recomputed from the posterior mean and floored at zero.

Parameters:
  • layer (LayerState) – The parent layer’s state (being updated).

  • value_child (ValueChild | None) – The value child, or None.

  • volatility_child (VolatilityChild | None) – The volatility child, or None.

  • time_step (float) – Current time step (needed to re-predict the child’s volatility).

  • max_posterior_precision (float) – Upper bound applied to the posterior precision write.

  • mean_field_updates (bool)

Returns:

Updated layer state with posterior precision and mean.

Return type:

LayerState