How does cost-complexity (weakest-link) pruning work?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how CART's cost-complexity pruning trades training error against tree size and how weakest-link pruning builds a sequence of subtrees. Tests the effective alpha of a node, choosing alpha by cross-validation, and why pruning a grown tree can beat early stopping.