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

# Frame a task

> Set the target, the metric, the validation and the columns before a session starts. Most of it cannot change afterwards.

Framing decides what every score in the session means. Once the session starts, the metric and the validation rows are locked. A wrong choice here makes every later score wrong in the same way.

## Start a session

Open Claude Code in the folder with your data and say what you want to predict:

```text theme={null}
Run Autofit on churn.csv and predict churn.
```

Claude reads the header, a few rows and the row count. It looks for the likely target, an ID or entity column, a date column, repeated rows and constant columns. It then asks its setup questions in steps.

To start from a shell instead, pass the same choices as flags:

```bash theme={null}
autofit start churn.csv --target churn --metric roc_auc \
  --drop customer_id --context "Telco churn, one row per customer."
```

## Answer the setup questions

Claude asks only the questions that apply to your data. Each one has a recommended option, based on what Claude found in the table.

**1. Before the task**

* **Level.** How much Claude explains while Autofit runs: every step in plain words, a short reason per experiment, or results and settings only.
* **Earlier runs.** If you ran this table before, Claude offers to continue that session instead of starting a new one. See [Continue a session](https://docs.priorlabs.ai/autofit/continue-a-session.md).

**2. The task**

* **Target.** The column to predict. Claude names the candidates and what one row is.
* **Use.** What you will do with the predictions. This picks the metric. See [Metrics](https://docs.priorlabs.ai/autofit/frame-a-task/metrics.md).
* **Rows.** How the rows relate: independent, several per entity, or ordered in time. This picks the validation. See [Locked folds](https://docs.priorlabs.ai/autofit/how-it-works/validation.md).

**3. The columns**

Claude asks about columns that look risky: a value that may be recorded after the outcome, a name that says too little, an ID, repeated records. With rows ordered in time, it asks whether the time column is a feature. See [Leakage](https://docs.priorlabs.ai/autofit/frame-a-task/leakage.md).

Constant columns are named in the summary and kept. They cannot change a prediction.

**4. Scoring**

How many folds, repeats, or one fold only. Claude asks only when there is a choice. A time holdout is always one fold.

**5. The run**

* **Budget.** The number of experiments, counting the baseline. 20 suits most tables. 10 gives a quick look or suits a large table. 40 suits a small table where you want many ideas tried. You can change it while the session runs.
* **Review.** Approve each experiment before it runs, approve by a rule ("approve what only adds columns, ask about the rest"), or let it run on its own. See [Steer a run](https://docs.priorlabs.ai/autofit/steer-a-run.md).

Claude also says what the budget takes in time, Claude usage and TabPFN tokens. See [Control token costs](https://docs.priorlabs.ai/autofit/control-token-costs.md).

## Confirm the setup

Before anything runs, Claude shows every choice in one list:

* the data file, its rows and columns, and any copy it wrote (with a `fold` column, or without repeated rows)
* the target, the metric and its [post-processing step](https://docs.priorlabs.ai/autofit/how-it-works/post-processing.md), if any
* how experiments are scored
* the dropped columns and why
* the budget and the review mode
* the level Claude explains at
* what it will tell the agent, word for word

Read the last item closely. It is everything the agent knows about your data beyond the table itself. Choose **Change something** to fix any line. Claude starts only after you choose **Start**.

> [!WARNING]
>
> The metric and the folds cannot change once the session starts. To change them, start a new session.

Claude never edits your file. When it needs a different table, such as one with a `fold` column, it writes a copy next to the original (`churn_folds.csv`) and tells you its name and row counts.

## When the data needs more

> [card] [Metrics](https://docs.priorlabs.ai/autofit/frame-a-task/metrics.md)
>
> Built-in metrics and how to choose one.

> [card] [Leakage](https://docs.priorlabs.ai/autofit/frame-a-task/leakage.md)
>
> Columns recorded after the outcome, IDs and repeated rows.

> [card] [Temporal data](https://docs.priorlabs.ai/autofit/frame-a-task/temporal-data.md)
>
> Validate on the latest period, with a gap where labels look ahead.

> [card] [Grouped data](https://docs.priorlabs.ai/autofit/frame-a-task/grouped-data.md)
>
> Several rows per customer, patient or store.

> [card] [Multi-table data](https://docs.priorlabs.ai/autofit/frame-a-task/multi-table-data.md)
>
> Lookup tables such as each customer's orders.

> [card] [Custom metrics](https://docs.priorlabs.ai/autofit/frame-a-task/custom-metrics.md)
>
> A cost, a threshold or a competition's metric.

> [card] [Domain context](https://docs.priorlabs.ai/autofit/frame-a-task/domain-context.md)
>
> Column meanings, earlier results and ideas for the agent.


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