Teach the Machine

Teach the Machine

This project is featured in chapter 5 of Coding and the Arts, where it serves as an introduction to Teachable Machine and training a machine learning model. I find the latest version of Teachable Machine to be really intuitive, particularly when capturing training images from your webcam, but even with its ease of use I think the following introductory video is a super helpful bit of context setting for students.

You can definitely run this activity without any programming by focusing students on training and testing their models in Teachable Machine, but it’s expected that many students will want to do something with the model they’ve trained. The exemplars below all use this model that I trained with a few pieces of fruit and serve as a demonstration for students of how to wire up their trained models in programming environments that you may already be using in the classroom.

As with all things ML, this example model can only ever be as good as the data it was trained with, which happened to be whatever fruit I had on hand with my desk as a background. This inevitably means that it won’t be terribly accurate for a wide range of actual fruit in a wide range of environments. You can use this as a teachable moment for your students as well - the models that they train may work well for them, but will inevitably perform differently for other users in other environments.

[Read More]