Problem in Training Ann for larger input/Output data.

조회 수: 3 (최근 30일)
saurabh mishra
saurabh mishra 2011년 7월 27일
답변: TED MOSBY 2025년 6월 10일
Hi all, I am new to neural networking.I want train my neural network for pt = [10x7 array],but it is not getting trained.However for pt = [10x4 array] it is being trained properly. Can anybody tell me what is the problem with this code.
pt = [10x7 ] array; % pt = input
t = [4 9 16 25 36 49 64]; % t = target
net = newff(pt,t,10);
net.trainParam.epochs = 500;
net.trainParam.goal = 0.01;
net = train(net,pt,t);
y = sim(net,pt);
Thanks in Advance.

답변 (1개)

TED MOSBY
TED MOSBY 2025년 6월 10일
Hi,
The function "newff" is obsolete now and instead "feedforwardnet" is used as below:
pt = pt'; % 7×10
t = t(:)'; % 1×10
net = feedforwardnet(10);
net.trainParam.epochs = 500;
net.trainParam.goal = 0.01;
net = train(net, pt, t);
y = net(pt);
To know more about "feedforwardnet", refer the documentation below:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by