Tokanny Faith Foundation Tokanny Faith Foundation Learning Hub
Unit 8 · Lesson 2

Train a model and use it in Scratch

Use the free Machine Learning for Kids website to train a text model that spots kind and unkind messages, then use it in a Scratch project.

2:27 videoSave video (2.6 MB) Captions are on

Key points

  • Machine Learning for Kids (machinelearningforkids.co.uk) is a free website for training AI models and using them in Scratch.
  • To train a text model: start a project, add labels (kind and unkind), type at least 5 examples for each, train it, then test it with new sentences.
  • In Scratch, your model appears as new blocks, like "recognise text ... (label)", that you can use with if and else.
  • When the model makes mistakes, add examples like them to the right label and train again.

Try it: Build a kindness checker

Do this on a computer or tablet at machinelearningforkids.co.uk. Under 13? Do it with a parent or teacher.

Check your understanding