newff classifying
2 views (last 30 days)
Show older comments
[EDIT: 20110624 15:42 CDT - merge duplicates, reformat - WDR]
Mr Greg
i saw so many answers given by you but still i getting problem with "newff" function
.............please help me anyone regard this.....................
1) i am constructing a network which is
net1=newff(minmax(I'),[79 4],{'tansig' 'logsig'},'traingdm');
size(I)=200*20
I is the set of 20 images
size(T)=4*20
i.e.,i want to classify the images into 4 classes
2) while i am training i getting the error like this
net1=train(net1,I,T)
??? Error using ==> network/train
Inputs are incorrectly sized for network.
Matrix must have 20 rows.
what is the problem with this...............?????
please explain
Please help anyone
regards
*vijay*
[Material from duplicate #1]
dear friends i am facing problem with the newff function in the process of constructing the MLP...........
PLEASE HELP ME FRIENDS I AM DOING MY ACADEMIC PROJECT WORK ON CLASSIFICATION AND i AM FACING THE FOLLOWING PROBLEM
>> size(I)
840 10
>> size(T)
5 10
>> net6=newff(minmax(GPCOM),[79 5]);
>> net6.trainParam.epochs=5000;
>> net6.trainParam.goal=0.00001;
>> net6=train(net6,I,T)
??? Error using ==> network/train
Inputs are incorrectly sized for network.
Matrix must have 10 rows.
thanks friends
regards
VIJAY
[Material from duplicate #2]
dear friends i am facing problem with the newff function in the process of constructing the MLP
........... PLEASE HELP ME FRIENDS I AM DOING MY ACADEMIC PROJECT WORK ON CLASSIFICATION AND i AM FACING THE FOLLOWING PROBLEM,
Please help me so that i can complete classification......sincerely i need it .....
>> size(I)
840 10
>> size(T)
5 10
>> net6=newff(minmax(GPCOM),[79 5]);
>> net6.trainParam.epochs=5000;
>> net6.trainParam.goal=0.00001;
>> net6=train(net6,I,T)
??? Error using ==> network/train
Inputs are incorrectly sized for network. Matrix must have 10 rows.
thanks friends
regards
VIJAY
0 Comments
Answers (1)
Walter Roberson
on 25 Jun 2011
Pass T.' to train() instead of T.
(Internal note: newff does not exist in the newest NN toolbox and it is hard to find the doc page for it. The doc page exists at http://www.mathworks.com/help/releases/R2010a/toolbox/nnet/newff.html )
3 Comments
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!