# core.LinkApprox

``` python
core.LinkApprox()
```

Turns Gaussian outputs into a distribution over targets.

It works only for the likelihoods it `supports`.

## Methods

| Name | Description |
|----|----|
| [**call**](#laplacekit.core.LinkApprox.__call__) | The distribution over targets. |
| [supports](#laplacekit.core.LinkApprox.supports) | Whether this link handles `lik` at these outputs. |

### **call**

``` python
core.LinkApprox.__call__(lik, out, /, *, generator=None)
```

The distribution over targets.

#### Parameters

| Name | Type | Description | Default |
|----|----|----|----|
| lik | Likelihood | A likelihood the link `supports`. | *required* |
| out | OutputGaussian | Gaussian posterior over the outputs. | *required* |
| generator | torch.Generator \| None | The generator for a sampled link (`MC`) to draw with. `None` means torch’s global RNG. Links that draw nothing ignore it. | `None` |

#### Returns

| Name | Type         | Description                  |
|------|--------------|------------------------------|
|      | Distribution | A distribution over targets. |

### supports

``` python
core.LinkApprox.supports(lik, f_mu, /)
```

Whether this link handles `lik` at these outputs.

For a weight-space posterior, `Linearized` calls it after the forward pass and before the Jacobian work; for a function-space posterior, after `at`.

#### 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. |
