It takes \(S\) draws \(f_s = \bar f + \varepsilon_s\), with the noise \(\varepsilon_s\) from the output covariance’s sample, and averages them into a predictive. A Categorical gets the mean of \(\operatorname{softmax}(f_s)\), and a Gaussian the moment-matched Normal with variance \(\widehat{\operatorname{Var}}_s(f_s) + \sigma^2\). Any other likelihood with HasSampleAverage (Bernoulli among them) averages them itself.
Parameters
Name
Type
Description
Default
n_samples
int
The number of draws \(S\). A SampleCov must hold at least that many.