Package org.opencv.ml

Class TrainData


  • public class TrainData
    extends Object
    • Field Detail

      • nativeObj

        protected final long nativeObj
    • Constructor Detail

      • TrainData

        protected TrainData​(long addr)
    • Method Detail

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static TrainData __fromPtr__​(long addr)
      • getCatMap

        public Mat getCatMap()
      • getCatOfs

        public Mat getCatOfs()
      • getClassLabels

        public Mat getClassLabels()
      • getDefaultSubstValues

        public Mat getDefaultSubstValues()
      • getMissing

        public Mat getMissing()
      • getNormCatResponses

        public Mat getNormCatResponses()
      • getResponses

        public Mat getResponses()
      • getSampleWeights

        public Mat getSampleWeights()
      • getSamples

        public Mat getSamples()
      • getSubMatrix

        public static Mat getSubMatrix​(Mat matrix,
                                       Mat idx,
                                       int layout)
      • 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()
      • getTestSamples

        public Mat getTestSamples()
      • getTrainNormCatResponses

        public Mat getTrainNormCatResponses()
      • getTrainResponses

        public Mat getTrainResponses()
      • getTrainSampleIdx

        public Mat getTrainSampleIdx()
      • getTrainSampleWeights

        public Mat getTrainSampleWeights()
      • getTrainSamples

        public Mat getTrainSamples​(int layout,
                                   boolean compressSamples,
                                   boolean compressVars)
      • getTrainSamples

        public Mat getTrainSamples​(int layout,
                                   boolean compressSamples)
      • getTrainSamples

        public Mat getTrainSamples​(int layout)
      • getTrainSamples

        public Mat getTrainSamples()
      • getVarIdx

        public Mat getVarIdx()
      • getVarSymbolFlags

        public Mat getVarSymbolFlags()
      • getVarType

        public Mat getVarType()
      • create

        public static TrainData create​(Mat samples,
                                       int layout,
                                       Mat responses,
                                       Mat varIdx,
                                       Mat sampleIdx,
                                       Mat sampleWeights,
                                       Mat varType)
      • create

        public static TrainData create​(Mat samples,
                                       int layout,
                                       Mat responses,
                                       Mat varIdx,
                                       Mat sampleIdx,
                                       Mat sampleWeights)
      • create

        public static TrainData create​(Mat samples,
                                       int layout,
                                       Mat responses,
                                       Mat varIdx,
                                       Mat sampleIdx)
      • create

        public static TrainData create​(Mat samples,
                                       int layout,
                                       Mat responses,
                                       Mat varIdx)
      • create

        public static TrainData create​(Mat samples,
                                       int layout,
                                       Mat responses)
      • getCatCount

        public int getCatCount​(int vi)
      • getLayout

        public int getLayout()
      • getNAllVars

        public int getNAllVars()
      • getNSamples

        public int getNSamples()
      • getNTestSamples

        public int getNTestSamples()
      • getNTrainSamples

        public int getNTrainSamples()
      • getNVars

        public int getNVars()
      • getResponseType

        public int getResponseType()
      • getNames

        public void getNames​(List<String> names)
      • getSample

        public void getSample​(Mat varIdx,
                              int sidx,
                              float buf)
      • getValues

        public void getValues​(int vi,
                              Mat sidx,
                              float values)
      • setTrainTestSplit

        public void setTrainTestSplit​(int count,
                                      boolean shuffle)
      • setTrainTestSplit

        public void setTrainTestSplit​(int count)
      • setTrainTestSplitRatio

        public void setTrainTestSplitRatio​(double ratio,
                                           boolean shuffle)
      • setTrainTestSplitRatio

        public void setTrainTestSplitRatio​(double ratio)
      • shuffleTrainTest

        public void shuffleTrainTest()