Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Data division problem in neural network
Replies: 1   Last Post: Apr 27, 2013 6:17 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
srishti

Posts: 12
Registered: 9/15/12
Data division problem in neural network
Posted: Apr 23, 2013 10:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,
I am using neural network pattern recognition for classification purpose.My problem is I am not getting whether for input and target both I have to write individual command "trainInd,valInd,testInd] = divideind(Q,trainInd,valInd,testInd)"
and if yes then how to define parameters(net.divideparm)? I have written the following code.I have read the documentation but I am not able to clear my doubt. Please help.


s = RandStream('mcg16807','Seed', 0);
RandStream.setDefaultStream(s)
x=input; % size of x is 10x70
t=target;% size of t is 3x70
net = patternnet(22);
net.divideFcn='divideInd';
[trainInd,valInd,testInd] = divideind(x,1:20,35:45,54:65);
net.divideParam.trainInd = trainInd
net.divideParamvalInd = valInd
net.divideParam.testInd = testInd
net= train(net,x,t);



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.