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

106 ビュー (過去 30 日間)
jalpa shah
jalpa shah 2016 年 11 月 29 日
コメント済み: Adi 2023 年 3 月 14 日
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

採用された回答

Greg Heath
Greg Heath 2016 年 12 月 10 日
net is never defined.
Hope this helps.
Greg
  1 件のコメント
jalpa shah
jalpa shah 2016 年 12 月 29 日
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

サインインしてコメントする。

その他の回答 (2 件)

Greg Heath
Greg Heath 2016 年 12 月 1 日
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 件のコメント
jalpa shah
jalpa shah 2016 年 12 月 1 日
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 2016 年 12 月 1 日
Please post code that can be copied and pasted into the command line.

サインインしてコメントする。


David Pippin
David Pippin 2020 年 10 月 23 日
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 件のコメント
Ev Ao
Ev Ao 2021 年 9 月 22 日
Thank you.... so much.
Adi
Adi 2023 年 3 月 14 日
Thank you!!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by