A decision tree for that?

Published

November 3, 2022

A decision tree for that?

Gianna had the opportunity to meet some of her technical heroes at a conference, and of course, she peppered them with questions!

At some point, the conversation centered around a machine learning solution they implemented. Gianna was delighted to hear that they used a decision tree for their solution.

The next day, she was still thinking about the conversation. She didn’t have much machine learning experience but knew enough about decision trees to feel validated. It was fantastic to find out that decision trees are useful!

Which of the following machine learning problems can you solve with a decision tree?

  1. Binary classification problems where you need to decide the correct category for a sample among two possible choices.

  2. Multi-class classification problems where you need to decide the correct category for a sample among multiple choices.

  3. Multi-label classification problems where you need to decide the correct categories for a sample among multiple choices.

  4. Regression problems where you need to predict a continuous output.

Attempt

Every one of the choices is a correct answer: decision trees are really powerful!

We usually discuss two types of decision trees in machine learning: classification and regression trees. The former covers the first three choices, while the latter covers the fourth choice.

Binary classification problems aim to classify one sample into two different categories. Multi-class classification problems are similar, but they classify samples into more than two categories. Decision trees are a perfect fit for these problems.

Multi-label classification is somewhat different. Here we want to classify a sample into one or more categories. Decision trees can also solve these problems. Check out Scikit-Learn’s implementation to see how they tackle multi-label classification.

Finally, decision trees can also solve regression problems where we want to predict a continuous target variable. “How can Regression Trees be used for Solving Regression Problems?” is an excellent introduction.