A meta-feature is a new input for a higher-level estimator, produced from a base estimator’s prediction or prediction probability. It lets stacking learn how to combine diverse classifiers instead of applying a fixed weighting rule. section 3.3.1
A stacking workflow creates meta-features in stages:
- Fit a diverse collection of level-1 base estimators on training data. section 3.3.1
- Generate one or more meta-features per example from each estimator’s predictions or prediction probabilities. section 3.3.1
- Train a level-2 estimator on the resulting metadata, optionally alongside the original features in blending. section 3.3.1 section 3.4.3
- Use cross-validation to generate each training example’s meta-features from a model that did not train on that example, then retrain the base estimators on all data. section 3.3.2
Two classifiers become two learned inputs
For a two-dimensional dataset, train a 3-nearest-neighbor classifier and Gaussian Naive Bayes. For every example, record their prediction probabilities as two meta-features. A second-level classifier then learns how those confidence signals relate to the target. With six base estimators, the metadata set contains six corresponding meta-features. section 3.3.1
Blending follows a related pattern: hold out validation data, generate meta-features there, append them to the original validation features, and fit the level-2 estimator. Cross-validation is more robust to overfitting because it supplies fold-specific validation predictions rather than predictions from models trained on the same examples. section 3.3.2 section 3.4.3
