Explain decision trees and tree ensembles
OneMain FinancialData Scientist · Technical ScreenLast updated
This question evaluates understanding of decision trees, splitting criteria for classification versus regression, hyperparameter effects on the bias–variance trade-off, and the mechanics and rationale behind tree-based ensemble methods in the Machine Learning domain.
Prompt
- Explain how a decision tree works for classification or regression.
- How does the tree choose a split (objective functions for classification vs regression)?
- Name key hyperparameters and how they affect bias/variance.
- Pick a different ML algorithm that uses decision trees (e.g., Random Forest, Gradient Boosted Trees) and explain how it works and when you would choose it over a single tree.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.