| Neural Network Toolbox | |
| Provide feedback about this page |
Divide vectors into three sets using random indices
Syntax
Description
dividerand is used to separate input and target vectors into three sets: training, validation, and testing. It takes the following inputs,
trainV |
Training vectors |
valV |
Validation vectors |
testV |
Test vectors |
trainInd |
Training indices |
valInd |
Validation indices |
testInd |
Test indices |
Examples
p = rands(3,1000); t = [p(1,:).*p(2,:); p(2,:).*p(3,:)]; [trainP,valP,testV,trainInd,valInd,testInd] = dividerand(p,0.6,0.2,0.2); [trainT,valT,testT] = divideind(t,trainInd,valInd,testInd);
Network Use
Here are the network properties that define which data division function to use, and what its parameters are, when train is called.
See Also
divideblock, divideind, divideint
| Provide feedback about this page |
![]() | divideint | dotprod | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |