Why do we need a validation set and test set

Created
TagsData prepare

When training a model, we divide the available data into three separate sets:

So if we omit the test set and only use a validation set, the validation score won’t be a good estimate of the generalization of the model.