Grades 3β5
Becoming a Neural Network
This week we find out what's inside an AI, then become one.
Day 1
A human neural network
Computers make predictions
A prediction is a guess about something we don't know yet, made from something we do know.
Weather
The weather app says it will rain.
Videos
A video site picks your next video.
Words
A phone guesses your next word.
Where has a computer made a prediction for you?
Elementary School Β· Grades 3β5
Let's make a prediction
A zoo gets more visitors when it's sunny.
How did you know? You multiplied 3 Γ 200.
That is exactly what a neural network does!
Elementary School Β· Grades 3β5
Words to know
- AI
- Computer programs that do things that usually take human thinking.
- Prediction
- A guess about something we don't know yet.
- Neural network
- A kind of AI that passes numbers along connections and multiplies them.
- Input value
- The number that goes into the network.
- Connection
- The line that carries a number from an input to an output.
- Weight
- The number on a connection. The input is multiplied by it.
- Output value
- The number that comes out: the network's prediction.
Elementary School Β· Grades 3β5
Become a neural network!
Input
Writes down the hours of sun and passes it on.
Connection
Holds the weight card, Γ 200, and multiplies.
Output
Announces the prediction.
Now swap the weight card for Γ 150. What will change?
Elementary School Β· Grades 3β5
Activity
Find the three parts in the app
- Point to the input value.
- Point to the weight.
- Point to the output value.
- Step through all four inputs.
Elementary School Β· Grades 3β5
Let's talk
- Which job in our human network was the most important?
- What happened when we changed the weight card?
- How is the app like our human network? How is it different?
Elementary School Β· Grades 3β5
Day 2
Predict, then check
Crickets are thermometers
Crickets chirp faster when it's warmer: about 6 more chirps a minute for every degree.
How could a network turn the temperature into chirps?
With a weight of 6!
Elementary School Β· Grades 3β5
Words to know
- Predict
- To work out an answer before you see it.
- Check
- To compare your prediction with the real answer.
- Growth rate
- How much bigger something gets each year.
Elementary School Β· Grades 3β5
Activity
Predict the cricket chirps
Crickets chirp faster when it's warm: 6 more chirps for every degree. So the weight is 6.
- Work out the output on paper.
- Type in your prediction.
- Step on to check.
Say your multiplication out loud to your partner!
Elementary School Β· Grades 3β5
Spot the pattern
| degrees | 15 | 20 | 25 | 30 |
|---|---|---|---|---|
| chirps | 90 | 120 | 150 | 180 |
What do you add each time? Why does that work?
Each input is 5 degrees warmer, and 5 Γ 6 = 30.
Elementary School Β· Grades 3β5
Explore
Watch a tree grow
The tree's weight is 1.27, its growth rate.
What does a weight bigger than 1 do to the input?
Elementary School Β· Grades 3β5
Let's talk
- How many chirps would the network predict at 10 degrees? At 40?
- The tree network's weight is 1.27. What would a weight of 1 mean?
- Why is it useful to predict before you check?
Elementary School Β· Grades 3β5
Day 3
Fixing a network that's wrong
Today the weights are wrong!
Output value
The network's guess.
Target output
The real answer: what actually happened.
A match
When the guess and the real answer match, the lines turn green.
Your job: fix the weights!
Elementary School Β· Grades 3β5
Words to know
- Target output
- The real answer. The output should match it.
- Tuning
- Changing a weight, a little at a time, until the outputs match the targets.
Elementary School Β· Grades 3β5
Activity
Fix the phone battery
The weight is wrong! A 1-hour video really uses 12% of the battery.
- Click the weight. Change it.
- Step through all four videos.
- Green lines mean it matches!
Too big or too small? Should the weight go up or down?
Elementary School Β· Grades 3β5
Activity
Two outputs, two weights
One input, the temperature, now makes two predictions: smoothies and popsicles.
Each output has its own weight. Find both!
Elementary School Β· Grades 3β5
Count the tries
Keep a tally of how many tries each weight took you.
Did anyone find a shortcut?
Divide the target by the input: 12 Γ· 1 = 12.
Elementary School Β· Grades 3β5
Let's talk
- How did you know which way to change the weight?
- Who found the weight in the fewest tries? How?
- A real AI does what you did, millions of times. What is it doing each time?
Elementary School Β· Grades 3β5
Day 4
Two inputs at once
Two inputs at once
What decides how many butterflies visit a garden? Often more than one thing.
Multiply each input by its weight, then add.
Elementary School Β· Grades 3β5
Words to know
- Input values
- The numbers that go in. A network can have more than one.
- Connection
- The line that carries a number from an input to an output.
- Total
- Each input times its weight, added together.
Elementary School Β· Grades 3β5
Activity 1
One weight to change
Make each bush count twice as much as each flower bed.
- The flower bed weight is already 1.
- What should the bush weight be? Change it.
- Check it works for all four gardens.
Elementary School Β· Grades 3β5
Activity 2
Both weights to find
Find the weight for each hour of sun and each liter of water. Both are between 0 and 1.
0.5 is a half
Like half a pizza.
0.25 is a quarter
Like a quarter of a pizza.
One at a time
Change one weight, then check.
Elementary School Β· Grades 3β5
Put the weights into words
Write down what each tomato weight means.
Elementary School Β· Grades 3β5
Let's talk
- In the tomato garden, which matters more: an hour of sun or a liter of water?
- What does a bigger weight tell us about an input?
- Why was this harder than one input?
Elementary School Β· Grades 3β5
Day 5
Design your own network
What does each weight mean?
The Honey Harvest Predictor's inputs are the flowers nearby and the days in the month.
Today, you design a network of your own!
Elementary School Β· Grades 3β5
Words to know
- Data
- Real numbers collected from the world, to check whether a network's predictions are right.
- Design
- To plan something before you build it: its inputs, output and weights.
Elementary School Β· Grades 3β5
Activity
Design your own network
- Draw a network from your own life, with one or two inputs and one output.
- Label each input, the output and each weight.
- Make a table of three rows: the inputs, and the output.
- Swap with a partner and predict each other's outputs.
Ideas: minutes of reading and pages read, hours of practice and goals scored.
Elementary School Β· Grades 3β5
Let's talk
- How did you choose your weights?
- How could you find out whether your weight is right?
- What would you want a computer to predict, if you could build any network?
Elementary School Β· Grades 3β5
A neural network isβ¦
Walk the gallery: predict one output on each network.
Then finish the sentence on a sticky note: "A neural network isβ¦"
Keep exploring at iinnoo.app
Elementary School Β· Grades 3β5