pyhgf.utils.vectorized_belief_propagation.prediction_pass#

pyhgf.utils.vectorized_belief_propagation.prediction_pass(network, x)[source]#

Forward-only sweep through the network (no PE / posterior / learning).

Sets predictors on the top element and runs the top-down prediction pass; returns the bottom element’s expected_mean. Used by pyhgf.model.DeepNetwork.predict().

Parameters:
  • network (Network) – The current vectorised network state.

  • x (Array) – The predictors set on the top element.

Returns:

The bottom element’s expected_mean after the forward sweep.

Return type:

expected_mean