org.opencv.ml
Class TrainData
java.lang.Object
org.opencv.ml.TrainData
public class TrainData
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCatCount
public int getCatCount(int vi)
getCatMap
public Mat getCatMap()
getCatOfs
public Mat getCatOfs()
getClassLabels
public Mat getClassLabels()
getDefaultSubstValues
public Mat getDefaultSubstValues()
getLayout
public int getLayout()
getMissing
public Mat getMissing()
getNAllVars
public int getNAllVars()
getNormCatResponses
public Mat getNormCatResponses()
getNSamples
public int getNSamples()
getNTestSamples
public int getNTestSamples()
getNTrainSamples
public int getNTrainSamples()
getNVars
public int getNVars()
getResponses
public Mat getResponses()
getResponseType
public int getResponseType()
getSample
public void getSample(Mat varIdx,
int sidx,
float buf)
getSamples
public Mat getSamples()
getSampleWeights
public Mat getSampleWeights()
getSubVector
public static Mat getSubVector(Mat vec,
Mat idx)
getTestNormCatResponses
public Mat getTestNormCatResponses()
getTestResponses
public Mat getTestResponses()
getTestSampleIdx
public Mat getTestSampleIdx()
getTestSampleWeights
public Mat getTestSampleWeights()
getTrainNormCatResponses
public Mat getTrainNormCatResponses()
getTrainResponses
public Mat getTrainResponses()
getTrainSampleIdx
public Mat getTrainSampleIdx()
getTrainSamples
public Mat getTrainSamples()
getTrainSamples
public Mat getTrainSamples(int layout,
boolean compressSamples,
boolean compressVars)
getTrainSampleWeights
public Mat getTrainSampleWeights()
getValues
public void getValues(int vi,
Mat sidx,
float values)
getVarIdx
public Mat getVarIdx()
getVarType
public Mat getVarType()
setTrainTestSplit
public void setTrainTestSplit(int count)
setTrainTestSplit
public void setTrainTestSplit(int count,
boolean shuffle)
setTrainTestSplitRatio
public void setTrainTestSplitRatio(double ratio)
setTrainTestSplitRatio
public void setTrainTestSplitRatio(double ratio,
boolean shuffle)
shuffleTrainTest
public void shuffleTrainTest()