How to disable popup of training windows for neural network in matlab

107 views (last 30 days)
Hi,
i have refereed the link: https://in.mathworks.com/matlabcentral/newsreader/view_thread/288528 and tried it but not able to disable the pop up windows related to training of neural network. plz suggest the solution. Thanks

Accepted Answer

Greg Heath
Greg Heath on 10 Dec 2016
net is never defined.
Hope this helps.
Greg
  1 Comment
jalpa shah
jalpa shah on 29 Dec 2016
Dear sir,
I have tried following code but still I am not able to disable the pop up windows in matlab. Plz let me know ur view. Thanks
trainFcn = 'trainlm';
hiddenLayerSize=8;
net = feedforwardnet(hiddenLayerSize,trainFcn);
net.layers{1}.transferFcn = 'logsig';
numNN =20 ;
NN = cell(1,numNN);
perfs = zeros(1,numNN);
for i=1:numNN
disp(['Training ' num2str(i) '/' num2str(numNN)])
net.trainParam.showWindow=0;
[NN{i},tr] = train(net,x_train,t1);
y1= NN{i}(x_train);
y2 = NN{i}(x_test);
end

Sign in to comment.

More Answers (2)

Greg Heath
Greg Heath on 1 Dec 2016
close all, clear all, clc
[x,t] = simplefit_dataset;
net = fitnet;
net.trainParam.showWindow = 0; % <== This does it
[net tr y e ] = train(net,x,t);
NMSE = mse(e)/var(t,1)
Hope this helps.
Thank you for formally accepting my answer
Greg
  2 Comments
jalpa shah
jalpa shah on 1 Dec 2016
Dear sir, Thanks for replying i have tried as follow as u suggested but its not working plz let me know ur view. Thanks
numNN =20 ;
NN = cell(1,numNN);
perfs = zeros(1,numNN);
for i=1:numNN
% net.trainParam.showWindow = false;
% net.trainParam.showCommandLine = false;
net.trainParam.showWindow=0;
[NN{i},tr] = train(net,x_train,t1);
nntraintool('close')
y1= NN{i}(x_train);
y2 = NN{i}(x_test);

Sign in to comment.


David Pippin
David Pippin on 23 Oct 2020
It took me a while, but for R2020b use 'none' as your option for plots. Nothing else worked for me. Example:
options = trainingOptions('adam', ...
'MaxEpochs',400, ...
'GradientThreshold',1, ...
'InitialLearnRate',0.0007, ...
'LearnRateSchedule','piecewise', ...
'LearnRateDropPeriod',500, ...
'LearnRateDropFactor',0.2, ...
'Verbose',1, ...
'Plots','none');

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!