|
On Mar 11, 8:20=A0pm, "Jess J" <jessie_...@yahoo.co.uk> wrote:
> Greg Heath <he...@alumni.brown.edu> wrote in message <921f59da-fd2a-4bfb-=
81e4-4f0e48294...@z1g2000yqn.googlegroups.com>...
> > On Mar 11, 10:56=3DA0am, "Jess J" <jessie_...@yahoo.co.uk> wrote:
> > > Hi all, I'm doing a project onneuralnetwork. After training my data, =
i wo=3D
> > uld like to load my own testing file to test my network.
> > > Inside theneuralnetwork toolbox, the data will be automatically divid=
e th=3D
> > e data set into train, validation and testing. However, i want to divid=
e th=3D
> > em/load another testing file by myself.
>
> > > Below is something i tried:
>
> > > trainInd =3D3D [(1:100)];
> > > valInd =3D3D [(101:200)];
> > > testInd =3D3D [(201:300)];
> > > [trainP,valP,testV] =3D3D divideind(p,trainInd,valInd,testInd);
> > > [trainT,valT,testT] =3D3D divideind(t,trainInd,valInd,testInd);
>
> > > %where p is input, t is target.
>
> > > However, the training stopped too early. Can anyone help?
>
> > No.
>
> > Not enough details.
>
> > Hope this helps.
>
> > Greg
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> Sorry.
>
> load test
> p =3D p';
> t =3D t';
>
> net =3D newff(p,t,[120],{'logsig','tansig'},'trainrp');
> trainInd =3D[(1:100)];
> valInd =3D[(101:200)];
> testInd =3D [(201:300)];
> [trainP,valP,testV] =3Ddivideind(p,trainInd,valInd,testInd);
> [trainT,valT,testT] =3Ddivideind(t,trainInd,valInd,testInd);
>
> net =3D train(net,p,t);
>
> Inside the test file, column 1 to 100 i want to use for training, 101 to =
200 use for validation and 201 to 300 use for testing.
>
> **erm... why need to add 3D in front? what's the purpose for adding 3D?
I did not add the 3D. It is a format conversion quirk between
MATLAB Central and Google Groups.
You are training 100 points with 120 hidden units.
Search the archives in Google Groups using
greg-heath Neq Nw
to estimate a more reasonable number.
Hope this helps.
Greg
|