← Back to course
2/6
Week 06 Β· Train, Test, Refine

Tuesday

Hold back a test set
// Measuring how well Sky Sorter really works
⏱ about 20 min

Tuesday: Hold Back a Test Set

Rocket runs Sky Sorter version 2 on the ten lab cards from last week. "Ten out of ten! It is perfect!"

Raven raises an eyebrow. "Those are the cards we used to choose its cut-off. Of course it gets them right."

"That is like studying the exact quiz questions," Nova says. "You ace the quiz, but did you learn the subject?"

Rocket thinks about that. "So we need cards it has never seen."

Raven pulls eight labeled cards out of a sealed envelope. "I held these back from the start."

Training cards and test cards

A fair check uses cards the sorter never learned from.

So the crew splits its labeled cards into two piles before building anything.

The training set is used to find patterns. The test set is held back and used only for checking.

If you test on training cards, the score can look much better than it really is.

PileUsed forCan it change the sorter?
Training setFinding cut-offs and patternsYes
Test setChecking how well the sorter worksNo, never
WHICH PILE?
  • Read the question.
  • Tap your answer.
The crew counts which cut-off fits the most labeled cards. Which pile should they use?
The crew wants to know how the sorter will do on new snapshots. Which pile?
Why did ten out of ten on the lab cards not prove much?

Accuracy

Accuracy measures how often the sorter is right.

Accuracy equals the number right divided by the total number tested.

For example, 8 right out of 10 is 8 divided by 10, which is 0.8, or 80 percent.

accuracy = number right / total tested
percent  = accuracy x 100

Example: 8 right out of 10
accuracy = 8 / 10 = 0.8
percent  = 0.8 x 100 = 80
9 right out of 10 is what percent?
3 right out of 4 is what percent?
10 right out of 20 is what percent?
StatementTrue or false?
The test set is held back while the sorter is built.?
Testing on training cards gives a fair score.?
Accuracy is the number right divided by the total.?
It is fine to change cut-offs to fit the test cards.?
WHY THIS EXERCISEA held-back test set gives an honest picture of how the sorter will do.
The crew has 20 labeled cards and holds back 8 for testing. How many are left for training?
WHY THIS EXERCISEEvery card in the test set is one fewer card for training, so teams have to balance the two.

Excellent thinking! Tomorrow in the Explorer Lab, you open the envelope and test Sky Sorter.

← Monday