Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: help me to train the following in neuralnetwork
Date: Mon, 12 Nov 2007 11:15:55 +0000 (UTC)
Organization: Universit&#228;t Duisburg-Essen
Lines: 29
Message-ID: <fh9clb$ivr$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1194866155 19451 172.30.248.35 (12 Nov 2007 11:15:55 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 Nov 2007 11:15:55 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1139954
Xref: news.mathworks.com comp.soft-sys.matlab:437054




Hello all,

I tried to train the foll. network i got an error,could 
anybodysuggest me, 


[P]=[p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ];

[T]=[t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 ];
 
[NVarin Ncases]=size(P)
[NVarin Ncases]=size(T)
 
  net   = newff(minmax(P),[1 0 1],
{'tansig' 'purelin','traingdm'}); 
 Y = sim(net,P);
 plot(P,T,P,Y,'o')
 hold on
 net.trainParam.epochs = 100;
 net.trainParam.goal = 1e-6; 
 net = train(net,P,T);
 Y = sim(net,P);
 plot(P,T,P,Y,'o')

Where pi= 1 x 20
corresponding target ti= 1000 x 2 (i= 1 to 15)

Thankyou.