<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166</link>
    <title>MATLAB Central Newsreader - help me to train the following in neuralnetwork</title>
    <description>Feed for thread: help me to train the following in neuralnetwork</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 12 Nov 2007 11:15:55 -0500</pubDate>
      <title>help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400816</link>
      <author>Steve </author>
      <description>&lt;br&gt;
Hello all,&lt;br&gt;
&lt;br&gt;
I tried to train the foll. network i got an error,could &lt;br&gt;
anybodysuggest me, &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[P]=[p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ];&lt;br&gt;
&lt;br&gt;
[T]=[t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 ];&lt;br&gt;
&amp;nbsp;&lt;br&gt;
[NVarin Ncases]=size(P)&lt;br&gt;
[NVarin Ncases]=size(T)&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;net   = newff(minmax(P),[1 0 1],&lt;br&gt;
{'tansig' 'purelin','traingdm'}); &lt;br&gt;
&amp;nbsp;Y = sim(net,P);&lt;br&gt;
&amp;nbsp;plot(P,T,P,Y,'o')&lt;br&gt;
&amp;nbsp;hold on&lt;br&gt;
&amp;nbsp;net.trainParam.epochs = 100;&lt;br&gt;
&amp;nbsp;net.trainParam.goal = 1e-6; &lt;br&gt;
&amp;nbsp;net = train(net,P,T);&lt;br&gt;
&amp;nbsp;Y = sim(net,P);&lt;br&gt;
&amp;nbsp;plot(P,T,P,Y,'o')&lt;br&gt;
&lt;br&gt;
Where pi= 1 x 20&lt;br&gt;
corresponding target ti= 1000 x 2 (i= 1 to 15)&lt;br&gt;
&lt;br&gt;
Thankyou.      </description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 12:26:27 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400823</link>
      <author>David </author>
      <description>&quot;Steve &quot; &amp;lt;senthilkumaar_s@yahoo.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fh9clb$ivr$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hello all,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tried to train the foll. network i got an error,could &lt;br&gt;
&amp;gt; anybodysuggest me, &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [P]=[p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 &lt;br&gt;
p15 ];&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; [T]=[t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 &lt;br&gt;
t15 ];&lt;br&gt;
&amp;gt;  &lt;br&gt;
&amp;gt; [NVarin Ncases]=size(P)&lt;br&gt;
&amp;gt; [NVarin Ncases]=size(T)&lt;br&gt;
&amp;gt;  &lt;br&gt;
&amp;gt;   net   = newff(minmax(P),[1 0 1],&lt;br&gt;
&amp;gt; {'tansig' 'purelin','traingdm'}); &lt;br&gt;
&amp;gt;  Y = sim(net,P);&lt;br&gt;
&amp;gt;  plot(P,T,P,Y,'o')&lt;br&gt;
&amp;gt;  hold on&lt;br&gt;
&amp;gt;  net.trainParam.epochs = 100;&lt;br&gt;
&amp;gt;  net.trainParam.goal = 1e-6; &lt;br&gt;
&amp;gt;  net = train(net,P,T);&lt;br&gt;
&amp;gt;  Y = sim(net,P);&lt;br&gt;
&amp;gt;  plot(P,T,P,Y,'o')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Where pi= 1 x 20&lt;br&gt;
&amp;gt; corresponding target ti= 1000 x 2 (i= 1 to 15)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thankyou.      &lt;br&gt;
&lt;br&gt;
i would suggest that you might want to say what the error &lt;br&gt;
is you got and where.  </description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 12:38:36 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400827</link>
      <author>Steve </author>
      <description>The error is in minmax </description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 12:38:43 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400828</link>
      <author>Steve </author>
      <description>The error is in minmax </description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 13:27:50 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400838</link>
      <author>David </author>
      <description>&quot;Steve &quot; &amp;lt;senthilkumaar_s@yahoo.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fh9hgj$jj0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; The error is in minmax &lt;br&gt;
&lt;br&gt;
and just what might the error be?</description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 13:40:56 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400840</link>
      <author>Steve </author>
      <description>I got where the eroor is, but i dot how to overcome now,&lt;br&gt;
&lt;br&gt;
The error is in pi matrix , I have both numerical and string&lt;br&gt;
for eg. p1=[1 2 3 4 5 6 7 8 'yes' 10 11 'yes' 3 4 5 ]&lt;br&gt;
&lt;br&gt;
how to overcome this ?? </description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 14:05:18 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400847</link>
      <author>David </author>
      <description>&quot;Steve &quot; &amp;lt;senthilkumaar_s@yahoo.de&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fh9l58$bui$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I got where the eroor is, but i dot how to overcome now,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The error is in pi matrix , I have both numerical and &lt;br&gt;
string&lt;br&gt;
&amp;gt; for eg. p1=[1 2 3 4 5 6 7 8 'yes' 10 11 'yes' 3 4 5 ]&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; how to overcome this ?? &lt;br&gt;
&lt;br&gt;
you can overcome it by writing your own function that can &lt;br&gt;
decide which is bigger, 'yes' or 11.  and which is &lt;br&gt;
smaller, 'yes' or 1.</description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 16:06:27 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400881</link>
      <author>Steve </author>
      <description>Hi ,&lt;br&gt;
&lt;br&gt;
I did as u suggested and now i got some other error,&lt;br&gt;
&lt;br&gt;
could u please suggest me how to give the t value in newff &lt;br&gt;
function , bcoz i have two columns as output,&lt;br&gt;
&lt;br&gt;
my [T]=[t1 t2....t15]&lt;br&gt;
Size of T matrix is 700 x 30&lt;br&gt;
&lt;br&gt;
thank you.</description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 16:19:52 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400883</link>
      <author>David </author>
      <description>&quot;Steve &quot; &amp;lt;johnsonsteve12@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fh9tm3$r2$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi ,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I did as u suggested and now i got some other error,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; could u please suggest me how to give the t value in &lt;br&gt;
newff &lt;br&gt;
&amp;gt; function , bcoz i have two columns as output,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; my [T]=[t1 t2....t15]&lt;br&gt;
&amp;gt; Size of T matrix is 700 x 30&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thank you.&lt;br&gt;
&lt;br&gt;
exactly what is the error you are getting now?</description>
    </item>
    <item>
      <pubDate>Mon, 12 Nov 2007 16:44:06 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#400886</link>
      <author>Steve </author>
      <description>Error is:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Input range has 2column matrix</description>
    </item>
    <item>
      <pubDate>Wed, 14 Nov 2007 13:14:23 -0500</pubDate>
      <title>Re: help me to train the following in neuralnetwork</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159166#401219</link>
      <author> Greg Heath</author>
      <description>On Nov 12, 6:15 am, &quot;Steve &quot; &amp;lt;senthilkumaa...@yahoo.de&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hello all,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I tried to train the foll. network i got an error,could&lt;br&gt;
&amp;gt; anybodysuggest me,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [P]=[p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 ];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [T]=[t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 ];&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [NVarin Ncases]=size(P)&lt;br&gt;
&amp;gt; [NVarin Ncases]=size(T)&lt;br&gt;
&lt;br&gt;
&amp;nbsp;[NVarout Ncases]=size(T)&lt;br&gt;
&lt;br&gt;
Nvarin = Nvarout = 1&lt;br&gt;
Ncases = 15&lt;br&gt;
&lt;br&gt;
&amp;gt;   net   = newff(minmax(P),[1 0 1],&lt;br&gt;
&amp;gt; {'tansig' 'purelin','traingdm'});&lt;br&gt;
&lt;br&gt;
[1 0 1] is an error it indicates you have&lt;br&gt;
&lt;br&gt;
1 node in the 1st hidden layer&lt;br&gt;
0 nodes in the second hidden layer!&lt;br&gt;
1 output node&lt;br&gt;
&lt;br&gt;
What configuration do you really want?&lt;br&gt;
&lt;br&gt;
I recommend using one hidden layer via [H 1]&lt;br&gt;
and finding a suitable value for H by trial and error.&lt;br&gt;
&lt;br&gt;
&amp;gt;  Y = sim(net,P);&lt;br&gt;
&amp;gt;  plot(P,T,P,Y,'o')&lt;br&gt;
&amp;gt;  hold on&lt;br&gt;
&amp;gt;  net.trainParam.epochs = 100;&lt;br&gt;
&amp;gt;  net.trainParam.goal = 1e-6;&lt;br&gt;
&lt;br&gt;
Why 1e-6? Why not some small fraction of var(T)?&lt;br&gt;
&lt;br&gt;
&amp;gt;  net = train(net,P,T);&lt;br&gt;
&amp;gt;  Y = sim(net,P);&lt;br&gt;
&amp;gt;  plot(P,T,P,Y,'o')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Where pi= 1 x 20&lt;br&gt;
&amp;gt; corresponding target ti= 1000 x 2 (i= 1 to 15)&lt;br&gt;
&lt;br&gt;
This makes no sense to me.&lt;br&gt;
&lt;br&gt;
What are Nvarin, Nvarout and Ncases?&lt;br&gt;
&lt;br&gt;
Hope this helps.&lt;br&gt;
&lt;br&gt;
Greg     &lt;br&gt;
&lt;br&gt;
P.S. Searching on&lt;br&gt;
&lt;br&gt;
greg-heath pretraining advice&lt;br&gt;
&lt;br&gt;
may help</description>
    </item>
  </channel>
</rss>

