Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Machine learning›Stacking
Machine learning

Stacking

Stacked Generalization (Stacking Ensemble with a Meta-Learner) · Also known as: Stacking (Yığınlama — Meta-Öğrenme), stacked generalization, meta-learning ensemble, super learner, yığınlama

Stacking, or stacked generalization, is an ensemble method introduced by David Wolpert in 1992 that combines the outputs of several different base models (Level-0) through a separate meta-model (Level-1). Unlike bagging and boosting, it deliberately uses heterogeneous model types, and it is the standard final-stage strategy in Kaggle competitions.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Stacking
Decision TreeLogistic RegressionRandom ForestSupport Vector MachineXGBoostActive learning Stacking…AdaBoostBayesian Stacking Ensemb…Ensemble Federated Learn…Ensemble Logistic Regres…

+7 more

When to use it

Use stacking when predictive accuracy is the priority and you have several reasonably strong, diverse base models to combine, on cross-sectional data with continuous, categorical or binary features and at least about 100 observations. It does not require normally distributed data. Below roughly 100 observations the k-fold cross-validation cannot generate enough reliable Level-0 predictions and the meta-model overfits, so a single tuned model such as random forest or XGBoost is safer.

Strengths & limitations

Strengths
  • Often achieves the highest predictive accuracy by exploiting heterogeneous base models that make different errors.
  • Flexible: any mix of model families can serve as base learners, with a simple meta-model on top.
  • Assumption-light — no normality requirement, and it handles continuous, categorical and binary features.
  • The proven final-stage strategy in competitive prediction settings such as Kaggle.
Limitations
  • Needs a fairly large sample (about 100+) so that k-fold cross-validation can generate reliable Level-0 predictions.
  • Gains shrink when the base models are highly correlated rather than diverse.
  • More complex and compute-heavy than a single model, and harder to interpret as a whole.
  • On small samples the diversity of base models cannot be achieved and a single model is usually enough.

Frequently asked

How is stacking different from bagging and boosting?

Bagging and boosting build many models of the same type, whereas stacking deliberately combines heterogeneous model families and learns how to blend them with a separate meta-model. That diversity is where stacking's advantage comes from.

Why use cross-validation to build the meta-features?

If the meta-model is trained on predictions the base models made on their own training data, information leaks and the stack overfits. Producing Level-0 predictions out-of-fold via k-fold cross-validation gives the meta-model honest inputs.

What should the meta-model be?

Keep it simple — logistic regression, ridge regression or a small XGBoost. A simple meta-learner learns sensible blending weights without overfitting the base-model outputs.

When should I not use stacking?

When you have fewer than about 100 observations, cross-validation cannot produce enough reliable Level-0 predictions and base-model diversity is hard to achieve, so a single tuned random forest or XGBoost is the safer choice.

Sources

  1. Wolpert, D.H. (1992). Stacked Generalization. Neural Networks, 5(2), 241–259. DOI: 10.1016/S0893-6080(05)80023-1 ↗
  2. van der Laan, M.J., Polley, E.C. & Hubbard, A.E. (2007). Super Learner. Statistical Applications in Genetics and Molecular Biology, 6(1), Article 25. DOI: 10.2202/1544-6115.1309 ↗

How to cite this page

ScholarGate. (2026, June 1). Stacked Generalization (Stacking Ensemble with a Meta-Learner). ScholarGate. https://scholargate.app/en/machine-learning/stacking-ensemble

Related methods

Decision TreeLogistic RegressionRandom ForestSupport Vector MachineXGBoost

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Decision TreeMachine learning↔ compare
  • Logistic RegressionResearch Statistics↔ compare
  • Random ForestMachine learning↔ compare
  • Support Vector MachineMachine learning↔ compare
  • XGBoostMachine learning↔ compare
Compare side by side →

Referenced by

Active learning Stacking ensembleAdaBoostBayesian Stacking EnsembleEnsemble Federated LearningEnsemble Logistic RegressionEnsemble Support Vector MachineExplainable Voting EnsembleRegularized Stacking EnsembleRobust Voting EnsembleSelf-supervised Stacking EnsembleSemi-supervised Stacking EnsembleVoting Ensemble

Similar methods

Stacked GeneralizationRegularized Stacking EnsembleRobust Stacking EnsembleExplainable Stacking EnsembleSemi-supervised Stacking EnsembleSelf-supervised Stacking EnsembleVoting EnsembleBayesian Stacking Ensemble

Related reference concepts

Ensemble MethodsCross-ValidationCross-Validation and ResamplingBayesian Model AveragingModel Evaluation and SelectionSupervised Learning

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Stacking (Stacked Generalization (Stacking Ensemble with a Meta-Learner)). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/stacking-ensemble · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Wolpert, D.H.
Year
1992
Type
Ensemble (heterogeneous meta-learning)
Task
Classification & prediction
MinSample
100
Related methods
Decision TreeLogistic RegressionRandom ForestSupport Vector MachineXGBoost
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account