Should the meta-learner in stacking be trained on predicted class labels or predicted probabilities?

Quick Overview

Asks whether the meta-learner in a stacking ensemble should take the base models' predicted class labels or their predicted probabilities as features. It tests what information each choice keeps, how calibration and score scales affect the meta-learner, and how meta-features are generated without leakage.

Should the meta-learner in stacking be trained on predicted class labels or predicted probabilities?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Should the meta-learner in stacking be trained on predicted class labels or predicted probabilities? In stacking, the outputs of several base classifiers become the input features of a second-level model. The question is which output to pass along. ```hint Count the information Compare how much a single meta-feature tells the meta-learner when it is a hard label and when it is a score between 0 and 1. ``` ### What a Strong Answer Covers - A clear recommendation and the reason for it - What the meta-learner can learn from scores that it cannot learn from labels - The cases where labels or raw decision scores are the practical choice - Practical handling: redundant probability columns, calibration and scale differences between models, and out-of-fold generation of the meta-features ### Follow-up Questions - Why must the meta-features be produced out-of-fold, and what goes wrong if the meta-learner is fit on in-sample predictions? - One base model is an SVM that only gives decision scores. How do you combine it with models that give probabilities? - In a 10-class problem with five base models, what does the meta-feature matrix look like, and how would you keep the meta-learner from overfitting it? - Does calibration of the base models matter if the meta-learner is a gradient-boosted tree?

Overview: Asks whether the meta-learner in a stacking ensemble should take the base models' predicted class labels or their predicted probabilities as features. It tests what information each choice keeps, how calibration and score scales affect the meta-learner, and how meta-features are generated without leakage.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Should the meta-learner in stacking be trained on predicted class labels or predicted probabilities?

In stacking, the outputs of several base classifiers become the input features of a second-level model. The question is which output to pass along.

What a Strong Answer Covers Guidance

  • A clear recommendation and the reason for it
  • What the meta-learner can learn from scores that it cannot learn from labels
  • The cases where labels or raw decision scores are the practical choice
  • Practical handling: redundant probability columns, calibration and scale differences between models, and out-of-fold generation of the meta-features

Follow-up Questions Guidance

  • Why must the meta-features be produced out-of-fold, and what goes wrong if the meta-learner is fit on in-sample predictions?
  • One base model is an SVM that only gives decision scores. How do you combine it with models that give probabilities?
  • In a 10-class problem with five base models, what does the meta-feature matrix look like, and how would you keep the meta-learner from overfitting it?
  • Does calibration of the base models matter if the meta-learner is a gradient-boosted tree?