Before training a model, a dataset is typically split into three separate pieces: a training set to learn from, a validation set to tune decisions along the way, and a test set to check final performance — once, at the very end.