The test set is intended to be an independent evaluation of how well the model works on new data that was not used in creating the model. Using the test set to adjust the model can result in poor performance in real use.
The CV set is used to adjust the model, to prevent overfitting the training set.
The training set cost is used in training the model.
The validation set cost is used to adjust the model.
The test set cost is used to verify the completed model’s performance.