How does a decision tree handle multiclass classification natively?

Quick Overview

Asks how a single decision tree handles classification with more than two classes without any extra decomposition. Tests whether you understand multiclass impurity measures, what a leaf stores, how probabilities are produced, and how trees compare with other models on multiclass tasks.

How does a decision tree handle multiclass classification natively?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does a decision tree handle multiclass classification natively? ```hint Look at the impurity formula Check whether Gini impurity or entropy assumes there are exactly two classes, and what a leaf would need to store to predict more than two. ``` ### What a Strong Answer Covers - How the split criteria are defined over K classes. - What a leaf stores, and how class predictions and probabilities come from it. - How a single tree separates several classes through successive splits. - The contrast with models that need one-vs-rest or softmax, and with gradient-boosted trees. - Practical issues such as rare classes. ### Follow-up Questions - How would you handle a class that makes up 1% of the training data? - Why are the leaf probabilities of a fully grown tree poorly calibrated, and how would you fix that? - How does gradient boosting handle K classes, and what does that cost in training time? - How would you adapt a tree to multi-label classification, where one example can belong to several classes?

Overview: Asks how a single decision tree handles classification with more than two classes without any extra decomposition. Tests whether you understand multiclass impurity measures, what a leaf stores, how probabilities are produced, and how trees compare with other models on multiclass tasks.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does a decision tree handle multiclass classification natively?

What a Strong Answer Covers Guidance

  • How the split criteria are defined over K classes.
  • What a leaf stores, and how class predictions and probabilities come from it.
  • How a single tree separates several classes through successive splits.
  • The contrast with models that need one-vs-rest or softmax, and with gradient-boosted trees.
  • Practical issues such as rare classes.

Follow-up Questions Guidance

  • How would you handle a class that makes up 1% of the training data?
  • Why are the leaf probabilities of a fully grown tree poorly calibrated, and how would you fix that?
  • How does gradient boosting handle K classes, and what does that cost in training time?
  • How would you adapt a tree to multi-label classification, where one example can belong to several classes?