필터 지우기
필터 지우기

parallel run of multiple neural network using parfor

조회 수: 1 (최근 30일)
AKHILA GOUDA
AKHILA GOUDA 2020년 4월 27일
댓글: AKHILA GOUDA 2020년 4월 29일
I want to run multiple training network using parfor for time reduction.
this one is my code.
but the code does not run even if it does not show any error, i dont know what is the issue.
i want to know the reason behind that.
Thanks
load magdata
y = con2seq(y);
u = con2seq(u);
tic
parfor i=1:10
d1 = [1:2];
d2 = [1:2];
narx_net = narxnet(d1,d2,10);
narx_net.divideFcn = '';
narx_net.trainParam.min_grad = 1e-10;
[p,Pi,Ai,t] = preparets(narx_net,u,{},y);
narx_net = train(narx_net,p,t,Pi);
yp = sim(narx_net,p,Pi);
e = cell2mat(yp)-cell2mat(t);
% plot(e)
narx_net_closed = closeloop(narx_net);
%
% view(narx_net)
% view(narx_net_closed)
y1 = y(1700:2600);
u1 = u(1700:2600);
[p1,Pi1,Ai1,t1] = preparets(narx_net_closed,u1,{},y1);
yp1 = narx_net_closed(p1,Pi1,Ai1);
TS = size(t1,2);
plot(1:TS,cell2mat(t1),'b',1:TS,cell2mat(yp1),'r')
end
toc
  댓글 수: 2
Mrutyunjaya Hiremath
Mrutyunjaya Hiremath 2020년 4월 29일
Hello Akhila
your code works fine ...
AKHILA GOUDA
AKHILA GOUDA 2020년 4월 29일
Thank you very much.
Are they run parallelly.
i mean are these 10 neural network trained parallelly.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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