Lesson 5: How to solve problems with machine learning models

Train and test a machine learning model to solve a real-world problem.

Learning objectives

  • Describe the stages of the AI project lifecycle
  • Use a machine learning tool to import data and train a model
  • Test and examine the accuracy of an ML model

Key vocabulary

AI project lifecycle, data cleaning, machine learning model, class, label, training, testing, accuracy, confidence score, confidence threshold

Lesson structure

  • Order the stages of the AI project lifecycle
  • User-focused approach
  • Stage 1: Defining the problem
  • Stage 2: Preparing the data
  • Stage 3: Training the model
  • Stage 4: Testing the model
  • Reporting on the accuracy of a model

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.