Filter löschen
Filter löschen

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

48 Ansichten (letzte 30 Tage)
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

Akzeptierte Antwort

Greg Heath
Greg Heath am 10 Dez. 2016
net is never defined.
Hope this helps.
Greg
  1 Kommentar
jalpa shah
jalpa shah am 29 Dez. 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Greg Heath
Greg Heath am 1 Dez. 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 Kommentare
jalpa shah
jalpa shah am 1 Dez. 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);
Greg Heath
Greg Heath am 1 Dez. 2016
Please post code that can be copied and pasted into the command line.

Melden Sie sich an, um zu kommentieren.


David Pippin
David Pippin am 23 Okt. 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');

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by