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

# Use the result

> Predict new rows, score the model on a held-out test set, and find the model and scripts a session leaves.

When a session finishes, Autofit retrains the final model on all your rows and saves it. You can predict with it, score it on a test set, or read any experiment's script.

## Predict new rows

Ask Claude, or run:

```bash theme={null}
autofit predict new_customers.csv
```

From a shell, it uses your latest session. Pass `-s <session>` for another one. The same holds for `autofit score`.

The input needs the same columns as the training table, without the target. It does not need a `fold` column. Autofit writes `new_customers.predictions.csv` next to it, or to the path you pass with `-o`:

* **Classification:** the predicted label and one probability column per class.
* **Regression:** the predicted value.

Every ensemble member predicts, so a prediction takes as many TabPFN calls as the ensemble has members.

> [!NOTE]
>
> Use `autofit predict` rather than loading `model.pkl` yourself. The file loads only with the package versions that saved it, and `predict` checks them.

## Score on a test set

The session's scores come from the same folds that chose the best experiment and the ensemble. They tend to be a little optimistic. For a score you can rely on, keep a labeled test set out of the session and score the model on it:

```bash theme={null}
autofit score test.csv
```

Autofit gives two numbers on the session's metric:

* **The final model.**
* **Plain TabPFN**, the session's baseline, refit on the same training rows.

The gap between them is what the session added on data it never saw.

Use the test set once, at the end. If you pick between sessions or settings by their test score, the test set becomes part of the selection and its score is optimistic too.

## With lookup tables

`predict` and `score` use the lookup tables the session was fit with. To use newer data, pass newer versions of every table under the same names:

```bash theme={null}
autofit predict new_customers.csv --table orders=orders_latest.csv
```

Pass newer tables when the new rows have keys the old tables do not cover, such as new customers.

## What a session leaves

Everything is in `~/.autofit/sessions/<session>/`:

| File | What it holds |
| - | - |
| `model.pkl` | The final model: the best experiment or the ensemble, retrained on all rows. |
| `work/train.py` | The baseline script. Every experiment's diff goes back to it. |
| `work/experiments_*/NNN_<name>/train.py` | Each experiment's script: a scikit-learn pipeline and the call that scores it. Self-contained and readable on its own. |
| `work/experiments_*/report.html` | The report. A copy, `autofit-report-<session>.html`, goes to the folder you started from. |

From a shell, `autofit diff 7` shows what experiment 7 changed, and `autofit recap` summarizes the session.

## Next

* [Read the report](https://docs.priorlabs.ai/autofit/read-the-report.md)
* [Continue a session](https://docs.priorlabs.ai/autofit/continue-a-session.md) to run more experiments


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