Skip to main content
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:
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.
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:
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:
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>/: From a shell, autofit diff 7 shows what experiment 7 changed, and autofit recap summarizes the session.

Next