Skip to main content

core.mean_outputs

core.mean_outputs(posterior, inputs, /)

The model’s outputs at the posterior’s mean.

For a function-space posterior this is posterior.at(inputs).mean, which pays for the covariance too.

Parameters

Name Type Description Default
posterior Posterior A weight-space posterior or a function-space posterior. required
inputs Inputs A batch of inputs. required

Returns

Name Type Description
Outputs The outputs, as the model returns them.

Raises

Name Type Description
RuntimeError The posterior’s check_versions finds a parameter changed in place since the fit.