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

Allow YouTube content?

We use YouTube to show you videos on our website. We ask permission before loading the content, as YouTube may be using cookies to help them track usage and improve their services.

You may wish to read Google's Cookie Policy and Privacy Policy before accepting.

Accept Cookies

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.