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

# Post-processing

> An optional fitted step before scoring, for metrics that score something TabPFN does not predict directly.

Some metrics score something TabPFN does not predict directly. QWK scores whole grades, while a regression predicts values in between. A post-processing step closes that gap. It is fitted on the out-of-fold predictions before the metric scores them.

## When a session uses one

A session has no step unless you choose one at setup. The step cannot change once the session starts.

| Step | Metric | What it fits | When Claude offers it |
| - | - | - | - |
| Cut points | QWK | Where each grade starts. | Always for QWK, as the recommended option. Without it, predictions round to the nearest grade. |
| Threshold | Accuracy, F1 (macro), or a metric file that scores labels, on two classes | The predicted chance above which a row is called the second class. | When the class you care about is rare, or when you ask. It rarely helps plain accuracy. |
| Temperature | Log loss | One scale for the predicted probabilities. | Only when you ask. TabPFN's probabilities are usually close already. |
| Your own | A metric file | What your `fit` and `transform` define. | When you write one. See [Custom metrics](https://docs.priorlabs.ai/autofit/frame-a-task/custom-metrics.md). |

From a shell, pass `--postprocess cut_points`, `threshold` or `temperature`.

## How it is scored

Autofit fits the step separately for each experiment and for each blend the ensemble tries, on that candidate's own out-of-fold predictions. Experiments are therefore ranked by how they will predict after the step. The final model fits the step on its own out-of-fold predictions and applies it to every new prediction.

Every score you see has the step applied. Ask Claude for the scores before the step to see what it changed.

## What it does to the scores

The step is fitted on the same rows it scores. It is not nested inside the folds. A step with one or a few parameters, fitted on thousands of rows, makes scores slightly optimistic, by about the same amount for every experiment. A step with many parameters can look like a gain on these rows and lose on new ones.

A held-out test set gives a score without this effect. See [Score on a test set](https://docs.priorlabs.ai/autofit/use-the-result.md#score-on-a-test-set).


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