Machine Learning Engineer Question:
Download Job Interview Questions and Answers PDF
Tell us how is a decision tree pruned?
Answer:
Pruning is what happens in decision trees when branches that have weak predictive power are removed in order to reduce the complexity of the model and increase the predictive accuracy of a decision tree model. Pruning can happen bottom-up and top-down, with approaches such as reduced error pruning and cost complexity pruning.
Reduced error pruning is perhaps the simplest version: replace each node. If it doesn’t decrease predictive accuracy, keep it pruned. While simple, this heuristic actually comes pretty close to an approach that would optimize for maximum accuracy.
Reduced error pruning is perhaps the simplest version: replace each node. If it doesn’t decrease predictive accuracy, keep it pruned. While simple, this heuristic actually comes pretty close to an approach that would optimize for maximum accuracy.
Download Machine Learning Engineer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me how would you handle an imbalanced dataset? | Explain me what’s the trade-off between bias and variance? |