Skip to content

Blending

A second-level ensembling method: the predictions of base models are combined by a separate model — the meta-model — but it is trained on predictions for a held-out part of the data.

How It Works

  1. The training data are split into two parts.
  2. Base models are trained on the larger part.
  3. Their predictions are obtained on the held-out part.
  4. The meta-model is trained on these predictions.
  5. For new objects the final prediction is produced by the meta-model.

The held-out part plays the role of a validation set: the base models have not seen it, so their predictions on it are closer to their behavior on new data.

How It Differs from Stacking

Property Blending Stacking
Data for the meta-model a separate held-out part out-of-fold predictions
Complexity of the scheme lower higher
Data usage part of the data is reserved the data are used more fully

Blending is simpler to set up, but it spends data: the held-out part does not participate in training the base models. Stacking is more complex, yet it uses the same material more efficiently.

In both cases the predictions for the second level are obtained without data leakage, and the finished ensemble is compared with a strong single model on independent data.

See also

← All terms