Skip to content

Introduction to machine learning

Lesson 2 of 2

MakeCode

7-11 yrs, 11-14 yrs

This lesson introduces you and your students to ML (machine learning).

Key learning:

  • I can collect data, train and test a machine learning (ML) model to react to different kinds of movements.
  • I can describe that an ML model matches new data to types of data it has been trained on.
  • I know an ML model can only match movements it has been trained on.

AI literacy:

Collecting training data

How machines learn

Human role in AI design

Iterating ML models

Testing ML models

Introduction video

This lesson includes an animation you can share with your class. It explains machine learning using familiar examples, and introduces how you can create your own machine learning tools using the micro:bit and CreateAI.

Video © Micro:bit Educational Foundation

Lesson plan preview

Slides preview

Completed lesson code

This provides an example of the code created during this lesson.