How can you choose a model without letting your final test data influence that choice? Set aside validation data for comparing candidate models or settings. Keep the test set untouched until the end, so it can give a final check of model performance. section 4.3
Give each split a distinct job:
- Train candidate models on the training set. section 4.3
- Use the validation set to choose which model or settings to use. section 4.3
- Use the test set only at the end to check how well the selected model did. section 4.3
Choosing a polynomial model
Train polynomial regression models of degrees 1, 2, and 10. Compare their validation errors to choose a model; reserve the test set for the final check. Common splits include 60% training, 20% validation, 20% testing, or 80%, 10%, and 10%. section 4.3





























