← Code

Pattern Detector projects

Build an app that sorts things into groups, then makes it useful to someone.

Start1. Train a model, then use it in Python
For teachers Usually Years 9–10 · 1 lesson

Build an app that sorts an input (text, answers, a photo, a pose or a sound) into groups and responds usefully. One short lesson trains a model in the Pattern Trainer and runs it in Python; then three open projects: A uses rules you write, B a model you train, C joins the two. The apps run on your own computer, from the Pattern Detector starters.

  • Usually Years 9–10
  • Lessons 1
  • Do first Apps with Gradio
Teacher guide

Standards, in general: main focus: Trace algorithms for errors (8P06). What this means

Start here

Train a model in the Pattern Trainer, then use the same file in a Python app.

1Train a model, then use it in PythonNot started

Train a tiny picture model in the Pattern Trainer, download it as my_model.json, see it answer on the board, then load the same file in a Python starter and see a prediction there.

  1. Predict
  2. Train and try
  3. Investigate › Inside the model file
  4. Investigate › What the app says
  5. Investigate › Where the class names come from
  6. Run it in Python
Start lesson

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)