Reference to non-existent field 'originalNet' when run network with showWindow = false

I want to disable window when training the network. When i set net.trainParam.showWindow = false i get error * Reference to non-existent field 'originalNet'*. That happens with training algorithm "trainbfg". With "trainlm" works fine.
I have tried to set net.trainParam.showCommandLine = true and net.trainParam.show = NaN with no effect. What cause this error ?

1 Comment

Please provide your code, since the following works fine for me. Maybe there is info here that will help, such as the Matlab version that the command works for.
hiddenLayerSize = 5;
net = fitnet(hiddenLayerSize);
% Add some example net parameters before training the net
net.divideParam.trainRatio = 80/100;
net.divideParam.valRatio = 10/100;
net.divideParam.testRatio = 10/100;
% Add this as another net parameter
net.trainParam.showWindow = 0; % Don't show the popup window
% Now train the net
[net,tr] = train(net,inputs,targets);

Sign in to comment.

Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Asked:

on 21 Sep 2017

Edited:

KAE
on 6 Sep 2018

Community Treasure Hunt

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

Start Hunting!