What is ensemble pruning?

Quick Overview

Asks what ensemble pruning is and why you would keep only a subset of an ensemble's members. It tests knowledge of selection methods, the balance between member accuracy and diversity, serving cost, and how to avoid overfitting the data used to choose the subset.

What is ensemble pruning?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is ensemble pruning? Explain why you would do it, how the members to keep are chosen, and how you would check that the pruned ensemble is really better. ```hint Cost and redundancy Think about what each extra member costs at inference time, and what it adds if it makes the same errors as members you already have. ``` ```hint Choosing the subset Picking a subset is itself a form of fitting. Ask which data you would use to make that choice and which data you would report on. ``` ### What a Strong Answer Covers - A definition of ensemble pruning and the two reasons to do it: serving cost and generalization - At least two concrete selection methods and how each one works - Why accuracy alone is a weak selection criterion, and how diversity enters - How to evaluate the pruned ensemble without overfitting the selection data ### Follow-up Questions - How does greedy forward selection with replacement end up assigning weights to models? - Would you prune a random forest, and what would you expect to gain? - How would you prune when members have very different inference costs? - How is early stopping in gradient boosting related to ensemble pruning?

Overview: Asks what ensemble pruning is and why you would keep only a subset of an ensemble's members. It tests knowledge of selection methods, the balance between member accuracy and diversity, serving cost, and how to avoid overfitting the data used to choose the subset.

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

What is ensemble pruning? Explain why you would do it, how the members to keep are chosen, and how you would check that the pruned ensemble is really better.

What a Strong Answer Covers Guidance

  • A definition of ensemble pruning and the two reasons to do it: serving cost and generalization
  • At least two concrete selection methods and how each one works
  • Why accuracy alone is a weak selection criterion, and how diversity enters
  • How to evaluate the pruned ensemble without overfitting the selection data

Follow-up Questions Guidance

  • How does greedy forward selection with replacement end up assigning weights to models?
  • Would you prune a random forest, and what would you expect to gain?
  • How would you prune when members have very different inference costs?
  • How is early stopping in gradient boosting related to ensemble pruning?