Navigation

Operators and Keywords

Function List:

C++ API

Function File: [ trainVectors,validationVectors,testVectors,indexOfTrain,indexOfValidation,indexOfTest] = dividerand (allCases,trainRatio,valRatio,testRatio)

Divide the vectors in training, validation and test group according to the informed ratios

          
          [trainVectors,validationVectors,testVectors,indexOfTrain,indexOfValidatio
          n,indexOfTest] = dividerand(allCases,trainRatio,valRatio,testRatio)
          
          The ratios are normalized. This way:
          
          dividerand(xx,1,2,3) == dividerand(xx,10,20,30)