Typically when you train a model you have three sets of data: trainingtraining, validationvalidation, and testingtesting - and they can’t be mixed, i.e. you can’t use images from one in the other.
So I want to know if the samples that you give NetTrainNetTrain
through the option ValidationSetValidationSet
are used to effect the parameters of the network in NetTrain? IsOr is it considered a holdout that I can test on later, or is that data burnt after NetTrain completes?
For example, given that testData is already used in NetTrain:
trainingData = ResourceData["MNIST", "TrainingData"];
testData = ResourceData["MNIST", "TestData"];
lenetModel = NetModel["LeNet Trained on MNIST Data"]
n = NetTrain[NetModel["LeNet"], trainingData, ValidationSet -> testData]
Is this an ill-informed thing to do:
ClassifierMeasurements[n, testData]