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

# Experiments

> Base class for experiments. Experiments should be reproducible, i.e. the settings should give all the information     needed to run the experiment. Experiments should be deterministic, i.e. the same settings should always give the same results.

## Installation

```bash theme={null}
pip install tabpfn-extensions matplotlib
```

<div className="python-reference-heading">
  <h2 id="benchmarking-experiment-experiment">
    `Experiment`
  </h2>

  <a className="python-reference-source" href="https://github.com/PriorLabs/tabpfn-extensions/blob/840c15a1848a986b39c85bc17efc61e0e377f983/src/tabpfn_extensions/benchmarking/experiment.py#L9" aria-label="View source for Experiment"><span aria-hidden="true">\</></span> View source <span aria-hidden="true">↗</span></a>
</div>

Base class for experiments.
Experiments should be reproducible, i.e. the settings should give all the information
needed to run the experiment.
Experiments should be deterministic, i.e. the same settings should always give the same results.

```python theme={null}
Experiment(
    task_type,
    **kwargs,
)
```

**Parameters**

<div className="python-reference-table">
  | Parameter | Type | Default | Description |
  | - | - | - | - |
  | <span id="benchmarking-experiment-experiment--task-type" /><code className="python-reference-parameter">task\_<wbr />type</code> | — | Required | — |
  | <span id="benchmarking-experiment-experiment--kwargs" /><code className="python-reference-parameter">\*\*kwargs</code> | — | — | — |
</div>

***

<div className="python-reference-heading">
  <h2 id="benchmarking-experiment-experiment-plot">
    `Experiment.plot`
  </h2>

  <a className="python-reference-source" href="https://github.com/PriorLabs/tabpfn-extensions/blob/840c15a1848a986b39c85bc17efc61e0e377f983/src/tabpfn_extensions/benchmarking/experiment.py#L30" aria-label="View source for Experiment.plot"><span aria-hidden="true">\</></span> View source <span aria-hidden="true">↗</span></a>
</div>

***

<div className="python-reference-heading">
  <h2 id="benchmarking-experiment-experiment-run">
    `Experiment.run`
  </h2>

  <a className="python-reference-source" href="https://github.com/PriorLabs/tabpfn-extensions/blob/840c15a1848a986b39c85bc17efc61e0e377f983/src/tabpfn_extensions/benchmarking/experiment.py#L24" aria-label="View source for Experiment.run"><span aria-hidden="true">\</></span> View source <span aria-hidden="true">↗</span></a>
</div>

Runs the experiment.

Should set self.results

```python theme={null}
Experiment.run(
    tabpfn,
    **kwargs,
)
```

**Parameters**

<div className="python-reference-table">
  | Parameter | Type | Default | Description |
  | - | - | - | - |
  | <span id="benchmarking-experiment-experiment-run--tabpfn" /><code className="python-reference-parameter">tabpfn</code> | — | Required | — |
  | <span id="benchmarking-experiment-experiment-run--kwargs" /><code className="python-reference-parameter">\*\*kwargs</code> | — | — | — |
</div>


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