Worksheet Carorcup 2
Worksheet Carorcup 2
Worksheet Carorcup 2
In this project you will make a Scratch project that learns to sort
photos.
You will train the computer to be able to sort a set of photos into two
piles:
This project worksheet is licensed under a Creative Commons Attribution Non-Commercial Share-Alike License
http://creativecommons.org/licenses/by-nc-sa/4.0/
6. Name your project “car or cup” and set it to learn how to recognise
“images”.
Click the “Create” button
7. You should now see “car or cup” in the list of your projects.
Click on it.
19. Wait for the training to complete. This might take a few minutes.
The computer will learn from patterns in the example photos you’ve
chosen, such as the shapes and the use of colour. These will be used to be
able to recognise new images.
21. Click the “Make” button, and then the “Scratch 3” button.
More examples!
The more examples you give it, the better the computer
should get at recognising whether a photo is a cup or car.
If you have a lot of examples for one type, and not the other,
the computer might learn that type is more likely, so you’ll
affect the way that it learns to recognise photos.
For example, make sure that you include some examples with
different backgrounds.
If every photo of a car you use for training has grass in the
background, and every photo of a cup you use for training is
on a wooden table, you might end up training the computer to
recognise grass or wood instead.
25. Click on the “mystery” sprite, then the “Code” tab, and change the
script to use your machine learning model.
Start from the script that is already there and change it to look like this.
27. Watch your script use your model to sort the photos into two piles.
The more examples you give it, the better it should get at recognising
photos correctly.
Now that you’ve finished, why not give one of these ideas a try?
Instead of just recognising cups and cars, can you add a third
type as well?