Effacer les filtres
Effacer les filtres

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

48 vues (au cours des 30 derniers jours)
jalpa shah
jalpa shah le 29 Nov 2016
Commenté : Adi le 14 Mar 2023
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

Réponse acceptée

Greg Heath
Greg Heath le 10 Déc 2016
net is never defined.
Hope this helps.
Greg
  1 commentaire
jalpa shah
jalpa shah le 29 Déc 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

Connectez-vous pour commenter.

Plus de réponses (2)

Greg Heath
Greg Heath le 1 Déc 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 commentaires
jalpa shah
jalpa shah le 1 Déc 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 le 1 Déc 2016
Please post code that can be copied and pasted into the command line.

Connectez-vous pour commenter.


David Pippin
David Pippin le 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');
  2 commentaires
Ev Ao
Ev Ao le 22 Sep 2021
Thank you.... so much.
Adi
Adi le 14 Mar 2023
Thank you!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by