MATLAB Answers

How to disable validation and test data set in neural network

30 views (last 30 days)
Emiliano Rosso
Emiliano Rosso on 22 Mar 2017
Edited: Prasanth Sundaravelu on 26 Apr 2018
I need to train patternnet neural network using all data set in the training set and avoiding validation check. I found two methods and they works very well in command line but not in a script returning very simple errors.
method 1:
mynet.divideFcn = '';
method 2:
mynet.divideParam.trainRatio = 1;
mynet.divideParam.valRatio = 0;
mynet.divideParam.testRatio = 0;
and the code:
mynet=patternnet([]);
P=rand(10,1000);
T=rand(2,1000);
[mynet,tr]=train(mynet,P,T);
Matlab R2012 b windows xp 32
Thanks !

  0 Comments

Sign in to comment.

Answers (1)

Prasanth Sundaravelu
Prasanth Sundaravelu on 26 Apr 2018
Edited: Prasanth Sundaravelu on 26 Apr 2018
Hi, I think you need to type specific Divide function, instead of blank.
Try this : mynet.divideFcn = 'dividerand';

  0 Comments

Sign in to comment.

Sign in to answer this question.