Skip to main content
An ensemble averages the predictions of several experiments. Autofit builds it from out-of-fold predictions, so the ensemble score comes from the same validation rows as every experiment score.

How the blend is chosen

After every successful experiment, Autofit runs greedy forward selection:
  1. Start from the best single experiment.
  2. Try adding each experiment, including ones already in the blend, and average the predictions.
  3. Keep the addition that improves the score most.
  4. Stop when no addition improves the score.
An experiment can be picked more than once. Its share of the ensemble is how often it was picked: picked twice out of three, its share is 67%. For classification, Autofit averages class probabilities. For regression, it averages predictions. The first ensemble score appears after the second successful experiment. It updates as new experiments finish. Unless you pin or exclude experiments, the ensemble never scores worse than the best single experiment on the validation folds. The search starts from it and only adds members that help.

Change the blend

You can change the blend at any time during the session.
  • Pin an experiment to start the search from it. Use this for an experiment you trust more than its score shows. With a pinned experiment, the ensemble can score below the best single experiment.
  • Exclude an experiment to keep it out. Use this for an experiment you think overfits or uses a feature you cannot have at prediction time. If you exclude the best one, the ensemble can score below it.
  • Use the best single experiment instead of the ensemble, for a smaller and simpler model. Ensembles are still scored, to compare, and pins have no effect.
On a finished session, pin, exclude and the single-experiment choice change the saved model only when it is built again. Run /af continue with no number afterwards: it rebuilds the final model with your choice and runs no new experiment. Ask Claude, or see Steer a run.

What the final model contains

Autofit retrains the best single experiment and every ensemble member on all rows, including the rows each fold held out. model.pkl holds the fitted pipelines and their shares. When you predict, each member predicts and Autofit averages them by share. An ensemble of three members makes three TabPFN predictions, at about three times the TabPFN tokens of a single experiment. The members predict in parallel.

The selection effect

The ensemble is chosen on the same validation rows that score it, which makes its score on those rows a little optimistic. See Score on a test set.