How does a decision tree work?
Instruction: Describe the basic algorithm behind decision trees.
Context: This question tests the candidate's understanding of decision trees, a popular machine learning algorithm.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
The way I'd approach it in an interview is this: A decision tree works by recursively splitting the data into smaller groups based on feature thresholds that improve purity or reduce error...