CORRECTED FOR THE HEINOUS SIN OF TOP-POSTING!
"ogochukwu " <ogcafe@yahoo.com> wrote in message <kdcjf8$fjn$1@newscl01ah.mathworks.com>...
> "Greg Heath" <heath@alumni.brown.edu> wrote in message <kd8d9o$njc$1@newscl01ah.mathworks.com>...
> > "ogochukwu " <ogcafe@yahoo.com> wrote in message <kd6eug$8d8$1@newscl01ah.mathworks.com>...
> > > Dear sir/madam
> > > i m a student currently carrying out a project work involving the use of neural network, i have been having serious problem using this product. each time i enter this code below >into mathlab (version 7.5.0)
> >
> > Why not use Matlab? mathlab may be innappropriate for your needs.
> >
> > >i always get this information " Targets are incorrectly sized for network.
> > > Matrix must have 1 rows". i really dont know what to do or where the problem is coming from,
> >
> > Obviously your net has one output dimension; so the target matrix must have one row.
> >
> > If you have N i/o training pairs with I-dimensional inputs and O-dimensional outputs,
> > the matrix sizes must be
> >
> > [ I N ] = size(input)
> > [ O N ] = size(target).
> >
> > >my project work is been delayed because of this. pls see the code below and let me know where the problem is coming from. thank you for the soon response
> >
> > > x=0:2:20
> > >
> > > y=(0.03*x.^3)-(0.2*x.^2)+(6*x)+5
> > >
> > > p=x;
> > >
> > > t=y;
> > >
> > > load choles_all
> >
> > You have already created a one-dimensional [p ,t] i/o pair set. What is in choles_all??
> >
> > You don't use whatever is in it UNLESS it contains another [p,t] i/o set which
> > overwrites the originally defined set.
> >
> > whos % Check dimensions
> >
> > % or
> >
> > [I N ] =size(p)
> > [O N] = size(t)
> >
> > > [pn,pp1] = mapstd(p);
> > >
> > > [tn,tp] = mapstd(t);
> > >
> > > [ptrans,pp2] = processpca(pn,0.001);
> >
> > Replace 0.001 to 0.01. A goal of 99% is more realistic than 99.9%
> >
> > These transformations should only be applied to the training set. The resulting
> > parameters should then be applied to the val and test sets.
> >
> > > [R,Q] = size(ptrans);
> >
> > [R Q ] = ?
> >
> > > iitst = 2:4:Q;
> > >
> > > iival = 4:4:Q;
> > >
> > > iitr = [1:4:Q 3:4:Q];
> > >
> > > validation.P = ptrans(:,iival);
> > >
> > > validation.T = tn(:,iival);
> > >
> > > testing.P = ptrans(:,iitst);
> > >
> > > testing.T = tn(:,iitst);
> > >
> > > ptr = ptrans(:,iitr);
> > >
> > > ttr = tn(:,iitr);
> > >
> > > net = newff(minmax(ptr),[15 1],{'tansig' 'purelin'},'trainlm');
> > >
> > > net.trainParam.show = 50;
> > >
> > > [net,tr]=train(net,ptr,ttr,[],[],validation,testing);
> >
> > % Take a good look at tr
> >
> > tr = tr
> >
> > Hope this helps.
> >
> > Greg
> >
> > > please see how you can be of help to me by either assisting with any materials that will detail the use of neural network in matlab 7.5.1, or weblinks that will be an eye opener or even personalities that could assist me, i will very gratefull for the soon response. >thank you sir
> Thanks greg for your quick response, sorry for using the word mathlab, i meant to use the world 'matlab 7.5.0'.
>
> Please i m still NOT clear concerning the explanations you gave with respect to the code >i gave, i want to plead if you could clearly correct the code for me by re-write it for me
No. I don't work that way.
I have asked questions and made comments to which you have not responded.
The faster and better you respond to what I comment and/or question, the faster you will Be able to write your own code.
Greg
or better still assist me with an online document or weblink that could help me understand this issue better and faster. thanks for the soon response.
>
>
"ogochukwu " <ogcafe@yahoo.com> wrote in message <kdcjf8$fjn$1@newscl01ah.mathworks.com>...
> "Greg Heath" <heath@alumni.brown.edu> wrote in message <kd8d9o$njc$1@newscl01ah.mathworks.com>...
> > "ogochukwu " <ogcafe@yahoo.com> wrote in message <kd6eug$8d8$1@newscl01ah.mathworks.com>...
> > > Dear sir/madam
> > > i m a student currently carrying out a project work involving the use of neural network, i have been having serious problem using this product. each time i enter this code below >into mathlab (version 7.5.0)
> >
> > Why not use Matlab? mathlab may be innappropriate for your needs.
> >
> > >i always get this information " Targets are incorrectly sized for network.
> > > Matrix must have 1 rows". i really dont know what to do or where the problem is coming from,
> >
> > Obviously your net has one output dimension; so the target matrix must have one row.
> >
> > If you have N i/o training pairs with I-dimensional inputs and O-dimensional outputs,
> > the matrix sizes must be
> >
> > [ I N ] = size(input)
> > [ O N ] = size(target).
> >
> > >my project work is been delayed because of this. pls see the code below and let me know where the problem is coming from. thank you for the soon response
> >
> > > x=0:2:20
> > >
> > > y=(0.03*x.^3)-(0.2*x.^2)+(6*x)+5
> > >
> > > p=x;
> > >
> > > t=y;
> > >
> > > load choles_all
> >
> > You have already created a one-dimensional [p ,t] i/o pair set. What is in choles_all??
> >
> > You don't use whatever is in it UNLESS it contains another [p,t] i/o set which
> > overwrites the originally defined set.
> >
> > whos % Check dimensions
> >
> > % or
> >
> > [I N ] =size(p)
> > [O N] = size(t)
> >
> > > [pn,pp1] = mapstd(p);
> > >
> > > [tn,tp] = mapstd(t);
> > >
> > > [ptrans,pp2] = processpca(pn,0.001);
> >
> > Replace 0.001 to 0.01. A goal of 99% is more realistic than 99.9%
> >
> > These transformations should only be applied to the training set. The resulting
> > parameters should then be applied to the val and test sets.
> >
> > > [R,Q] = size(ptrans);
> >
> > [R Q ] = ?
> >
> > > iitst = 2:4:Q;
> > >
> > > iival = 4:4:Q;
> > >
> > > iitr = [1:4:Q 3:4:Q];
> > >
> > > validation.P = ptrans(:,iival);
> > >
> > > validation.T = tn(:,iival);
> > >
> > > testing.P = ptrans(:,iitst);
> > >
> > > testing.T = tn(:,iitst);
> > >
> > > ptr = ptrans(:,iitr);
> > >
> > > ttr = tn(:,iitr);
> > >
> > > net = newff(minmax(ptr),[15 1],{'tansig' 'purelin'},'trainlm');
> > >
> > > net.trainParam.show = 50;
> > >
> > > [net,tr]=train(net,ptr,ttr,[],[],validation,testing);
> >
> > % Take a good look at tr
> >
> > tr = tr
> >
> > Hope this helps.
> >
> > Greg
> >
> > > please see how you can be of help to me by either assisting with any materials that will detail the use of neural network in matlab 7.5.1, or weblinks that will be an eye opener or even personalities that could assist me, i will very gratefull for the soon response. >thank you sir
> Thanks greg for your quick response, sorry for using the word mathlab, i meant to use the world 'matlab 7.5.0'.
>
> Please i m still NOT clear concerning the explanations you gave with respect to the code >i gave, i want to plead if you could clearly correct the code for me by re-write it for me
No. I don't work that way.
I have asked questions and made comments to which you have not responded.
The faster and better you respond to what I comment and/or question, the faster you will Be able to write your own code.
Greg
or better still assist me with an online document or weblink that could help me understand this issue better and faster. thanks for the soon response.
>
>