← Back to course
1/6
Week 07 Β· Test the Model

Monday

Did the model really learn?
// Keep some cards back
⏱ about 15 min

Monday: Did the Model Really Learn?

Rocket slaps the last labeled photo card onto the pile. "Our sorting model is done!" he cheers.

He shows it the same cards it learned from. It sorts every one perfectly.

Raven tilts her head. "What do you notice about the cards you used for the check?"

Nova dims her lights. "Hmm," she says. "Would a quiz be fair if you saw every answer first?"

A fair check needs new examples

Last week the crew taught a paper sorting model with labeled photo cards.

Those cards are the training set. They are the examples the model learned from.

Checking the model with the same cards is like a quiz you already saw.

Of course it does well! That does not prove it learned the pattern.

So we keep some labeled cards back. We never use them to build the model.

Those saved cards are the test set. They check the model fairly.

  • Training set: cards the model learns from.
  • Test set: cards kept back, used only for checking.
  • A model is useful when it works on cards it has never seen.
TRAINING OR TESTING?
  • Read the question.
  • Tap your answer.
Rocket uses a card to write the model's rules. Which set is it in?
Raven hides five cards in a drawer until check time. Which set are they?
Why is checking with the training cards not a fair test?
StatementTrue or false?
A test set is used to build the model.?
Test cards should be new to the model.?
Getting every training card right proves the model is perfect.?
Test cards still need correct labels.?
WHY THIS EXERCISETest cards are new to the model, and their labels let us check each answer.

Why test cards need labels

Each test card still has its true label on the back.

The model makes its guess first. Then we flip the card and compare.

A match is a right answer. A mismatch is an error.

Errors are not bad news. They show us where the model needs help.

PUT THE TEST STEPS IN ORDER
  • ?Build the model with the other cards.
  • ?Show the model a test card.
  • ?Set some labeled cards aside.
  • ?Write down the model's guess.
  • ?Flip the card and check the label.
WHY THIS EXERCISETest cards stay hidden until the model is finished, then we check each guess.
What do we call examples kept back only for checking? Type one word: training or test.
WHY THIS EXERCISEThe test set checks the model with examples it never learned from.
Try it
Ask a grown-up to make up three easy riddles.
Answer one riddle after hearing its answer, and one without.
Which one really showed what you know?

Nice thinking, explorer! Tomorrow we test the crew's model and count the results.