Lesson 4: Decision trees

Discover how and why decision trees are used in machine learning.

Learning objectives

  • Describe how decision trees are used to build a classification ML model

  • Describe how training data changes an ML model

  • Explain why ML is used to create decision trees

Key vocabulary

Decision tree, feature, node, root node, decision node, leaf node, classification, explainability

Lesson structure

  • Classification recap

  • What does a model look like?

  • Using a decision tree

  • Creating a decision tree

  • Using ML to create a decision tree

  • Decision trees in medicine

Lesson overview

Download lesson resources

To download the lesson plan, slides and activities please log in with or create a free Raspberry Pi Foundation account.
We will then ask you a few questions to help us understand how you will use the resources.