Why is the testSet (size) equal to the dataSet after installing net.divideParam.testRatio to 15/100.
Show older comments
Best
I'm using a feed-forward neural network. Here I want to split my dataset into 3 pieces. A training, validation and test-set.
Via the use of a feedforwardnet(), I can install this quite easy by the net.divideParams. Thus for example I set these on :
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
But when I test my network y = net(x); I see that y contains my whole dataset and not 15% of it.
Thus, if my dataset contains 3000 data points, I would expect that Y contains 450 data points.
Can someone explain this to me? Can I relay on Y, or should I create my own independent data set because my test set, isn't allowed to use any train or validation data...
Kind regards
Dieter
Accepted Answer
More Answers (0)
Categories
Find more on Pattern Recognition in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!