Hold out an untouched final set
Return to the home row after each number or separator. · 181 words
A held-out final set is data kept separate so you can estimate how a trained system will perform on genuinely new cases. It is often called a test set. Suppose you are building a small rain predictor from 14 past days of weather. Use 8 days to train, 3 days as a validation set for choices, and the final 3 days as the untouched test set. The final days should not guide feature choice, threshold selection, or repeated experiments.
After training, compare possible humidity thresholds on the validation days. The rule 'predict rain when humidity is above 55' gets all 3 validation cases right, so you select it. The untouched test days have humidities 50, 65, and 70, with actual outcomes no, yes, yes. Applying the frozen rule gives no, yes, yes, so accuracy is 2 of 3, or about 66.7 percent. If you tried thresholds until the test result looked best, that set would become a tuning set and the score would be optimistic. Keep the final set sealed during development and evaluate it only after all choices are fixed.
Check your recall
Why must the final 3 weather days remain untouched while the humidity threshold is selected?
Check your answer
The threshold must be chosen using training or validation data. Using the final days to choose it would turn them into a tuning set, making their accuracy an optimistic estimate rather than a fair test of performance on unseen data.
Sources and credits
Original KeyTouch lesson. Background reading · Google · Machine Learning Crash Course.