Lesson 4: Decision trees

In this lesson, students will take their first in-depth look at a type of model: decision trees. Students will see how different training data results in the creation of different models, experiencing first-hand what it means for models to be data-driven. Finally, students will see why machine learning is used to create decision trees.

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.