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

# Leakage

> Find and drop columns that give away the answer, IDs that identify rows, and repeated records.

A leaking column holds information the model will not have when it predicts for real. It makes the baseline and every experiment score better than they will on new rows. Autofit cannot detect every leak from the data. You know when each column is recorded.

## What Claude checks

Before the session starts, Claude looks for three kinds of risk and asks you about each one it finds:

* **Columns recorded after the outcome.** A refund date, a closing balance, a status, a return reason. Claude asks: "Is `refund_date` known when the order is placed?"
* **ID columns.** A column unique or nearly unique per row. A model can learn to recognize a row by its ID.
* **Repeated records.** The same record twice, sometimes with a different timestamp. One copy can train while the other is scored. Claude says how many rows repeat and offers a copy that keeps the first row of each.

## Check a suspect column yourself

Compare the target rate across the column's values. A column that splits the target almost perfectly is either a strong signal or a leak, and only you can tell which.

For example, in a loan table with a `default` target:

| Column | Finding | Verdict |
| - | - | - |
| `recoveries` | Every loan with recoveries above 0 defaulted. | Leak: recoveries happen after a default. |
| `total_rec_prncp` | Loans that repaid 99% or more of principal never defaulted. | Leak: recorded at the end of the loan. |
| `grade` | Default rate rises from grade A to G. | Signal: set when the loan is issued. |

## Drop a column

Tell Claude to drop it. From a shell, pass `--drop`, once per column:

```bash theme={null}
autofit start loans.csv --target default --drop recoveries --drop total_rec_prncp
```

A dropped column is removed before anything runs, including the baseline.

> [!WARNING]
>
> Mentioning a leaking column in the context is not enough. The baseline runs before the agent reads anything, so only dropping the column keeps it out.

For a column in a lookup table, use a copy of that table without the column. `--drop` reaches the main table only. See [Multi-table data](https://docs.priorlabs.ai/autofit/frame-a-task/multi-table-data.md).

## When the agent finds an issue

During the session, the agent can flag a data issue: a repeated record, an identifying ID or a leaking column it missed at setup. Its experiment description then starts with `Data issue:`.

Autofit pauses the session at the flag. Nothing runs until you decide:

* **Start a new session** on data without the issue. You get an honest baseline to compare with. This is usually the better choice.
* **Resume** this session. Its scores stay as they are, and the final model can include experiments scored with the issue.


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