Question 1
Before training, a data scientist randomly divides a labeled dataset into a **training set** and a separate **test set**, and the test set is not touched until the model is finished. What is the primary purpose of holding out that test set?
A. To estimate how well the model will perform on new, previously unseen dataCorrect answer
Correct. The held-out test set stands in for future data. Because the model never saw those rows during training, its score on them is an honest estimate of generalization performance.
B. To give the model additional examples to learn from after the first training pass finishes
Treats the test set as extra training data. Training on it destroys its independence — the score would then reflect memorization rather than generalization.
C. To reduce the total training time by shrinking the number of rows the algorithm must process
Confuses an incidental side effect with the purpose. Withholding rows does shrink the training set, but the split exists for honest evaluation; you would simply subsample if speed were the goal.
D. To remove noisy and mislabeled rows from the dataset before the algorithm sees them
Confuses the train/test split with data cleaning. A random split does not identify or filter bad records; noisy rows are just as likely to land in either partition.
Explanation
A model's score on the data it was fitted to is optimistically biased, because the model can reproduce examples it has already absorbed. Reserving a test set that the model never sees during training gives an unbiased estimate of performance on new data, which is the quality that matters in production and the practice Oracle describes for building and testing models. Reusing the test set for training would eliminate that independence; shortening training time is a side effect rather than the goal; and a random partition performs no cleaning or noise removal.