The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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

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);
x=input; % size of x is 10x70
t=target;% size of t is 3x70
net = patternnet(22);
[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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.