Why do we need a validation set in addition to a test set?

Quick Overview

Asks why a machine learning workflow keeps a validation set separate from the test set. Tests understanding of selection bias in tuning, what makes a performance estimate trustworthy, and how cross-validation and nested cross-validation fit in when data is limited.

Why do we need a validation set in addition to a test set?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why do we need a validation set in addition to a test set? ```hint What a choice does to a score Think about what happens to a dataset's score once you have used it to pick the best of several options. ``` ### What a Strong Answer Covers - The role each split plays in the workflow - What using a score to select a model does to that score - What happens when the test set is used for tuning - Options when data is limited ### Follow-up Questions - You looked at the test score, did not like it, and changed the model. What should you do now? - How would you build the splits when rows have a time order or come in groups, such as several rows per user? - How large do the validation and test sets need to be?

Overview: Asks why a machine learning workflow keeps a validation set separate from the test set. Tests understanding of selection bias in tuning, what makes a performance estimate trustworthy, and how cross-validation and nested cross-validation fit in when data is limited.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Why do we need a validation set in addition to a test set?

What a Strong Answer Covers Guidance

  • The role each split plays in the workflow
  • What using a score to select a model does to that score
  • What happens when the test set is used for tuning
  • Options when data is limited

Follow-up Questions Guidance

  • You looked at the test score, did not like it, and changed the model. What should you do now?
  • How would you build the splits when rows have a time order or come in groups, such as several rows per user?
  • How large do the validation and test sets need to be?