Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: help me to train the following in neuralnetwork
Date: Mon, 12 Nov 2007 12:26:27 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 36
Message-ID: <fh9gpj$9sp$1@fred.mathworks.com>
References: <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 1194870387 10137 172.30.248.35 (12 Nov 2007 12:26:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 Nov 2007 12:26:27 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 791003
Xref: news.mathworks.com comp.soft-sys.matlab:437061



"Steve " <senthilkumaar_s@yahoo.de> wrote in message 
<fh9clb$ivr$1@fred.mathworks.com>...
> 
> 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.      

i would suggest that you might want to say what the error 
is you got and where.