# MC

``` python
MC(n_samples=100)
```

Average over Gaussian draws of the outputs.

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

## Methods

| Name | Description |
|----|----|
| [supports](#laplacekit.MC.supports) | True for a `Categorical`, a `Gaussian` or a `HasSampleAverage` likelihood. |

### supports

``` python
MC.supports(lik, f_mu, /)
```

True for a `Categorical`, a `Gaussian` or a `HasSampleAverage` likelihood.

#### Parameters

| Name | Type       | Description      | Default    |
|------|------------|------------------|------------|
| lik  | Likelihood | The likelihood.  | *required* |
| f_mu | Tensor     | The output mean. | *required* |

#### Returns

| Name | Type | Description |
|----|----|----|
|  | bool | True when `__call__` can turn outputs like `f_mu` into a distribution. |
