Train and test a genuine tiny neural network without teaching the mathematics.
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.
The board uses a small genuine 2-2-1 sigmoid neural network with backpropagation. It sees only colour and shape, not photographs. No account or online model is needed. The lesson ends by linking back to Unit 1: chatbots are very large neural networks trained to predict the next word. Optional extension, with school approval: train an image model in the Pattern Trainer (https://tools.learningwaypoints.com/trainer/, photos stay on the computer; Teachable Machine also works) and test photos not used in training. An image model processes much richer information than two hand-chosen clues; neither guarantees correct predictions.
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.
Passing tests is evidence, not proof. Its 'knowledge' is connection strengths shaped by the examples; it can be right for the wrong reason.
Choose one: the program's code, the examples, or the connection strengths. Which changes when the network trains? Defend your choice to a partner.
Connection strengths. The code and examples stay the same during training.
Draw two input dots (colour, shape) joined to two output dots (banana, apple). For each training example read out, thicken the lines that led to the right answer by one stroke.
A rough paper picture of weights growing. Don't teach the maths; keep it to 'used more, counts more'.
If every training banana were yellow, which line would get thickest? What would the network say about a green banana?
Links back to Training examples and Model mistakes: the examples shape what it learns.
Students may think testing a new fruit automatically retrains the model.
| What you will see | A question to ask | The fix |
|---|---|---|
| Student assumes an output label proves the model is right. | What examples did it learn from? Does testing change the connections? | Compare predictions before and after training on a reset network. |
One possible solution for each task. Other correct programs are fine.
Open task: any program that does what the step asks.
Stretch: Show optional connection numbers; ask why they are not percentages.
Support: Start with all examples and compare one fruit before and after 100 training steps.
What changes during training, and what happens during testing?
Training updates network parameters using labelled examples; testing uses them without updating.
The last lesson of Unit 2 names four kinds of AI (rules, predict or sort, make new content, take actions) and how each goes wrong.