What are the most impactful hyperparameters of a decision tree?
easyAnswer
- : hard limit on depth — the biggest lever. : minimum samples needed to consider splitting a node. : minimum in each leaf — controls leaf size and variance. : number of features to consider per split (=all for a tree, sqrt(d) or similar for a forest). : don't split unless impurity drops by at least this much.
- Together they control the bias-variance tradeoff and inference latency.
Check yourself — multiple choice
- The activation function
- , , , ,
- Learning rate and momentum
- Number of layers
Depth + leaf/split are the main tree levers.
#decision-trees#hyperparameter-tuning
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- How do you choose the regularization strength (lambda / alpha)?
- How do you choose k in k-Nearest Neighbours?
- Gini impurity, entropy, and classification error — which do trees actually use?
- How do decision trees handle categorical features?
- Pre-pruning vs post-pruning in decision trees — what's the difference and when do you use each?
- How does cost-complexity (CCP) pruning work?