What does the min_impurity_decrease hyperparameter control during tree growth?

Quick Overview

Explain what the min_impurity_decrease setting does when a decision tree grows and how its threshold is computed. Tests whether you understand sample-weighted impurity reduction, pre-pruning versus post-pruning, and why greedy early stopping can miss XOR-like structure.

What does the min_impurity_decrease hyperparameter control during tree growth?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What does the `min_impurity_decrease` hyperparameter control during tree growth? ```hint Look at the scaling Check how scikit-learn scales the impurity reduction before comparing it with the threshold, and think about what that scaling does to splits deep in the tree. ``` ### What a Strong Answer Covers - The quantity compared against the threshold and the condition under which a node is split - How weighting by the fraction of samples at the node affects deep and small nodes - The effect of the default and of larger values on tree size and variance, and why the useful scale depends on the criterion - The weakness of greedy early stopping and how post-pruning compares ### Follow-up Questions - How would you choose between `min_impurity_decrease`, `max_depth` and `min_samples_leaf` to control a tree's size? - How does cost-complexity pruning with `ccp_alpha` decide which subtrees to remove? - How do `sample_weight` or `class_weight` change the value compared against the threshold? - What setting plays the same role in gradient-boosted tree libraries?

Overview: Explain what the min_impurity_decrease setting does when a decision tree grows and how its threshold is computed. Tests whether you understand sample-weighted impurity reduction, pre-pruning versus post-pruning, and why greedy early stopping can miss XOR-like structure.

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

What does the min_impurity_decrease hyperparameter control during tree growth?

What a Strong Answer Covers Guidance

  • The quantity compared against the threshold and the condition under which a node is split
  • How weighting by the fraction of samples at the node affects deep and small nodes
  • The effect of the default and of larger values on tree size and variance, and why the useful scale depends on the criterion
  • The weakness of greedy early stopping and how post-pruning compares

Follow-up Questions Guidance

  • How would you choose between min_impurity_decrease , max_depth and min_samples_leaf to control a tree's size?
  • How does cost-complexity pruning with ccp_alpha decide which subtrees to remove?
  • How do sample_weight or class_weight change the value compared against the threshold?
  • What setting plays the same role in gradient-boosted tree libraries?