Lesson 3 7 min

Sort the shape cards

Use labelled cards to find a shape clue and try it on a new card.

Learning goal

I can use examples to sort a card I have never seen.

How it works

In machine learning, a tool learns patterns from examples. A name on an example is a label. A circle can have the label Round. A tool can look for a clue that matches those labels.

Think of it like this

It’s like looking at the pictures on toy bins. Pictures give you clues about where a toy belongs. A few pictures make our game easy. A real tool may learn from many more examples.

Worked example

In Luma’s card box, a blue circle is marked Round. A blue triangle is marked Pointy. Blue is on both cards. The triangle has corners and the circle has none. Luma tries “look for corners” as her clue.

What to remember

Look at the examples. Find a clue. Try it on a new card.

  1. Round exampleA blue circle has a smooth edge.
  2. Pointy exampleA blue triangle has three corners.
  3. New cardA yellow circle still has a smooth edge.
Notice which clue still works when the colour changes.

Key words

Machine learning
A way to make a model by learning patterns from examples. The model can use those patterns on new examples.
Label
An answer or category attached to an example. A card might have the label “pointy” or “round.”
Training data
Examples a model uses to learn patterns. The examples you choose can affect what it learns.
More Machine Learning lessons

Activity

Round or pointy?

Watch the cards get sorted

In this model, a few cards stand for many examples. You look for the clue a simple model could use.

Read the steps
  1. See examples. A blue circle goes in Round. A blue triangle goes in Pointy.
  2. Find a clue. Both are blue. Look at the edges and corners.
  3. Try a new card. A yellow circle still has a round edge. Guess Round.

Try it on paper

Materials Drawn cards, or say the shapes aloud. A partner can hold up a card or describe it.

  1. Draw a blue circle and a blue triangle. Label their boxes Round and Pointy. Trace an edge on each shape.
  2. Draw a red triangle. Before you move it, say which box you choose and why.
  3. Draw an oval. If the clue is corners, explain where the oval goes. Make one more card to test the clue.

Talk it through Colour was the same on the first two cards. Corners helped you tell the boxes apart.

Quick check

1. What is a label in this game?
Answer and explanation

The box name that goes with a card. The label tells you which group the example belongs to.

2. What is a good clue for a red triangle?
Answer and explanation

Its three corners go with Pointy. The examples link corners with the Pointy box.