> ## Documentation Index
> Fetch the complete documentation index at: https://docs.priorlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> TabPFN-3 and later versions support up to 1,000,000 rows, subject to feature count and checkpoint/API limits.
> For large datasets, use per-estimator subsampling, e.g. inference_config={"SUBSAMPLE_SAMPLES": 100_000}, in TabPFNClassifier or TabPFNRegressor from tabpfn or tabpfn_client.
> Pass raw pandas DataFrames to fit and predict. Categorical strings/categories, raw text, and missing feature values are handled automatically; no manual integer/one-hot encoding, imputation, scaling, or outlier removal is needed.

# Predictive distributions

> Plot the predicted target distribution for a single sample.

> [!NOTE]
>
> Looking for usage documentation? Check out [Predictive distribution](https://docs.priorlabs.ai/capabilities/predictive-distribution.md).

## `plot_regression_distribution`

[ View source ](https://github.com/PriorLabs/TabPFN/blob/f02b3b5941717472eafd078c15ae2043676b3fcf/src/tabpfn/visualisation/regression_distribution.py#L59)

Plot the predicted target distribution for a single sample.

```python theme={null}
plot_regression_distribution(
    prediction: FullOutputDict,
    *,
    sample_idx: int = 0,
    statistics: Sequence[str] = ("mean", "median", "mode"),
    quantile_interval: tuple[float, float] | None = (0.1, 0.9),
    zoom_quantile: float | None = 0.99,
    smooth: float = 0.005,
    ax: plt.Axes | None = None,
    color: str = "#1f77b4",
) -> plt.Axes
```

**Parameters**

| Parameter | Type | Default | Description |
| - | - | - | - |
| `prediction` | `FullOutputDict` | Required | Output of `regressor.predict(X, output_type="full")`. It may hold several samples; pick the one to plot with `sample_idx`. |
| `sample_idx` | `int` | `0` | Index of the sample to plot within `prediction`. |
| `statistics` | `Sequence[str]` | `("mean", "median", "mode")` | Point statistics to mark with a vertical line. Any of `"mean"`, `"median"`, `"mode"`. |
| `quantile_interval` | `tuple[float, float] \| None` | `(0.1, 0.9)` | Central interval to shade, e.g. `(0.1, 0.9)` for the 80% interval. Pass `None` to disable. |
| `zoom_quantile` | `float \| None` | `0.99` | Fraction of probability mass to keep in view, centred on the median. Pass `None` to show the full support. |
| `smooth` | `float` | `0.005` | Width of the display-only moving average over the density, as a fraction of the number of bars. Pass `0` to show the raw bar density. |
| `ax` | `plt.Axes \| None` | `None` | Existing axes to draw on. A new figure is created if omitted. |
| `color` | `str` | `"#1f77b4"` | Base colour of the density curve. |

**Returns**

| Type | Description |
| - | - |
| `plt.Axes` | The matplotlib axes containing the plot. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.