# core.HasSampleAverage

``` python
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](#laplacekit.core.HasSampleAverage.average) | Average output draws into a predictive distribution. |

### average

``` python
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. |
