← Teacher guide

How do models combine clues?

How do models combine clues? Students predict, test and explain a transparent fruit classifier.

AI Foundations · How AI learns · about 30 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Before class

Use the board without accounts. It is one hand-adjusted decision unit, not a trained neural network. The score is colour weight × (+0.5 for yellow, −0.5 for green) + shape weight × (+0.5 for long, −0.5 for round). Above zero is banana, below zero is apple, and exactly zero is "unsure" (a tie: the clues cancel out). Optional extension, with school approval: train an image classifier in the Pattern Trainer (https://tools.learningwaypoints.com/trainer/, photos stay on the computer; Teachable Machine also works) and test unfamiliar photos. Unlike the hand-adjusted unit, the image model learns its weights from examples.

Running the lesson

  1. Ask for a prediction before each test.
  2. Have students change one factor and explain the result.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

Students may treat a model label as proof.

When students get stuck

What you will seeA question to askThe fix
Student accepts an output without checking.What evidence or test could help you decide?Compare two cases and change one factor.

Answers to the checks

  1. Engage: predict: A fruit is yellow but round. Is colour alone enough to identify it?
    Several clues may help, but cannot guarantee a correct label.
  2. Explore: combine clues: Test at least two fruit descriptions.
  3. Clues: What happens when you increase the colour weight?
    Colour influences the decision more
  4. Weights: Set the colour weight to 0 and the shape weight to 2. What does the unit predict for a yellow, round fruit?
    apple
  5. Evaluate: check the output: With colour weight 3 and shape weight 1, the unit calls a yellow, round fruit a banana. What does this show?
    Colour has the bigger weight, so it decides
    With colour weight 3 and shape weight 1, the unit trusts colour much more than shape. The label comes from the weights you set.

Solutions

One possible solution for each task. Other correct programs are fine.

Elaborate: change the decision

Open task: any program that does what the step asks.

Stretch and support

Stretch: Find every weight setting that makes a yellow, round fruit a tie. What do they have in common?

Support: Model one prediction and one test.

Exit ticket

Colour weight 2, shape weight 0. What does the unit predict for a green, long fruit, and why?

Apple: only colour counts, and green pushes the score below zero, even though a long fruit is probably a banana.

Where it leads

Unit 2, lesson 4 lets a tiny neural network learn its own weights from examples.