AI engineering glossary · Classical ML algorithms

What is stacking?

Stacking (also called Stacked generalisation): An ensemble technique where predictions from several different base models become the inputs to a final model that learns how best to combine them. Base predictions are produced out-of-fold to avoid leakage.

Level: intermediateTopic: Classical ML algorithms

Stacking: an example

Feed forest, SVM and logistic predictions into a small logistic model that outputs the final answer.

Related terms

More Classical ML algorithms terms

Where you learn it

Stacking is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.