How do you choose which base models to include in a stacking ensemble?

Quick Overview

Asks how to decide which base models belong in a stacking ensemble. Tests your grasp of model competence, diversity of errors, measuring redundancy from out-of-fold predictions, greedy selection with a sensible stopping rule, and the cost of each extra model.

How do you choose which base models to include in a stacking ensemble?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you choose which base models to include in a stacking ensemble? ```hint Where the gain comes from The meta-learner can only help when base models make different mistakes. How would you measure that before training the stack? ``` ```hint Selection is fitting too Every model you keep because it raised the cross-validated score is a choice tuned to that data. Think about when to stop and how to report the final number. ``` ### What a Strong Answer Covers - Sets a minimum bar for each base model under cross-validation - Explains why diversity of errors drives stacking gains and where that diversity can come from - Describes how to measure redundancy between candidates from out-of-fold predictions - Gives a selection procedure with a stopping rule that accounts for cross-validation noise - Weighs the training, latency and maintenance cost of each added model ### Follow-up Questions - Why must the meta-features be out-of-fold predictions, and what happens if you use in-sample predictions instead? - Which meta-learner would you use, and how can its regularization do part of the model selection? - How do you get an honest estimate of the final stack's performance after choosing base models with cross-validation? - When would a simple weighted average of base models beat a learned meta-model?

Overview: Asks how to decide which base models belong in a stacking ensemble. Tests your grasp of model competence, diversity of errors, measuring redundancy from out-of-fold predictions, greedy selection with a sensible stopping rule, and the cost of each extra model.

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

How do you choose which base models to include in a stacking ensemble?

What a Strong Answer Covers Guidance

  • Sets a minimum bar for each base model under cross-validation
  • Explains why diversity of errors drives stacking gains and where that diversity can come from
  • Describes how to measure redundancy between candidates from out-of-fold predictions
  • Gives a selection procedure with a stopping rule that accounts for cross-validation noise
  • Weighs the training, latency and maintenance cost of each added model

Follow-up Questions Guidance

  • Why must the meta-features be out-of-fold predictions, and what happens if you use in-sample predictions instead?
  • Which meta-learner would you use, and how can its regularization do part of the model selection?
  • How do you get an honest estimate of the final stack's performance after choosing base models with cross-validation?
  • When would a simple weighted average of base models beat a learned meta-model?