MATLAB Answers

victor
0

'ValidationData' is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.

Asked by victor
on 23 Jul 2018
Latest activity Answered by Sean de Wolski
on 23 Jul 2018
Hi, Please help me to solve this problem.
I am trying to specify training options for CNN. In the moment of 'ValidationData' I am getting error. Traing options:
options = trainingOptions('sgdm', ...
'MaxEpochs',4, ...
'ValidationData',imdsValidation, ...
'ValidationFrequency',30, ...
'Verbose',false, ...
'Plots','training-progress');
Error:
Error using nnet.cnn.TrainingOptionsSGDM.parseInputArguments (line 176)
'ValidationData' is not a recognized parameter. For a list of valid name-value pair arguments, see the
documentation for this function.
Error in trainingOptions (line 144)
args = nnet.cnn.TrainingOptionsSGDM.parseInputArguments(varargin{:});
Error in CNN_mysample (line 59)
options = trainingOptions('sgdm', ...
In decription I found a note that says to "The validation data is not used to update the network weights. Turn on the training progress plot, and turn off the command window output." How can I turn off the command window output? Thank you all.

  2 Comments

victor - which version of MATLAB do you have? Perhaps your version does not include the ValidationData parameter.
I am using matlab 2017a, does it support this parameter?

Sign in to comment.

1 Answer

Answer by Sean de Wolski
on 23 Jul 2018

It looks like it was added in 17b; release notes. If you're doing deep learning in MATLAB, it makes sense to upgrade if at all possible(!)

  0 Comments

Sign in to comment.