Reference to non-existent field 'originalNet' when run network with showWindow = false
Afficher commentaires plus anciens
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 commentaire
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);
Réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!