Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Data division problem in neural network
Date: Tue, 23 Apr 2013 14:50:09 +0000 (UTC)
Organization: NIT
Lines: 16
Message-ID: <kl6731$8a8$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1366728609 8520 172.30.248.48 (23 Apr 2013 14:50:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 23 Apr 2013 14:50:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3629571
Xref: news.mathworks.com comp.soft-sys.matlab:794151

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);