Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Validation and train sets are equal?

1 vue (au cours des 30 derniers jours)
EdWood
EdWood le 25 Août 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
When I train this net:
net = feedforwardnet(20,'trainlm');
net.inputs{1}.processFcns = {};
net.outputs{2}.processFcns = {};
net.trainParam.epochs = 200;
It looks like, that I have the exactly same train and validation sets during training, so it never ends until max epoch is reached. I have tried to change ratio manually, but it doesnt work as well.
My input data set is unique.
I've tried another input data set and it works. I have also tried to specific range for validation and train set by divideint and it works as well:
net.divideFcn = 'divideind';
net.divideParam.trainInd = 89:584;
net.divideParam.valInd = 1:88;
So what am I missing?
  1 commentaire
Greg Heath
Greg Heath le 27 Août 2016
It would help if you posted your commented code operating on one of the MATLAB example data sets.
help nndatasets
doc nndatasets
Greg
PS: What is wrong with using the example code in
help feedforwardnet
doc feedforwardnet
?

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by