필터 지우기
필터 지우기

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

조회 수: 48 (최근 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');

카테고리

Help CenterFile Exchange에서 Sequence 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