Skip to main content
Tweeted twitter.com/StackMma/status/991216142667706368
edited title
Link
user5601
  • 3.8k
  • 2
  • 24
  • 59

With How exactly does NetTrain canuse a ValidationSet be reused(can we reuse it as test setTestSet)?

added 392 characters in body
Source Link
user5601
  • 3.8k
  • 2
  • 24
  • 59

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]

Typically when you train a model you have three sets of data: training, validation, and testing - 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 NetTrain through the option ValidationSet are used to effect the parameters of the network in NetTrain? Is it considered a holdout that I can test on later, or is that data burnt after NetTrain completes?

Typically when you train a model you have three sets of data: training, validation, and testing - and they can’t be mixed, i.e. you can’t use images from one in the other.

I want to know if the samples that you give NetTrain through the option ValidationSet are used to effect the parameters of the network? Or 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]
edited title
Link
user5601
  • 3.8k
  • 2
  • 24
  • 59

With NetTrain does information incan a ValidationSet leakbe reused as test set?

Source Link
user5601
  • 3.8k
  • 2
  • 24
  • 59
Loading