Skip to main content

core.HasSampleAverage

core.HasSampleAverage()

The predictive from output draws.

WeightSamples and the MC link call it. Categorical and Gaussian, and their subclasses, keep their own averages.

Methods

Name Description
average Average output draws into a predictive distribution.

average

core.HasSampleAverage.average(f, /)

Average output draws into a predictive distribution.

Parameters

Name Type Description Default
f Tensor Output draws shaped [S, N, ...]: S draws for N examples. required

Returns

Name Type Description
Distribution A distribution over targets, one per example.