seniorDecision Trees
What is cost-complexity pruning in CART?
Updated May 16, 2026
Short answer
Cost-complexity pruning reduces tree size by adding a penalty for complexity to the loss function.
Deep explanation
CART defines an objective function combining impurity and tree complexity: R(T) + α|T|, where |T| is number of leaves. By increasing α, the algorithm prefers simpler trees. It generates a sequence of pruned subtrees and selects the optimal one via cross-validation.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro