public class TrainData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
nativeObj |
Modifier | Constructor and Description |
---|---|
protected |
TrainData(long addr) |
Modifier and Type | Method and Description |
---|---|
static TrainData |
__fromPtr__(long addr) |
static TrainData |
create(Mat samples,
int layout,
Mat responses) |
static TrainData |
create(Mat samples,
int layout,
Mat responses,
Mat varIdx) |
static TrainData |
create(Mat samples,
int layout,
Mat responses,
Mat varIdx,
Mat sampleIdx) |
static TrainData |
create(Mat samples,
int layout,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat sampleWeights) |
static TrainData |
create(Mat samples,
int layout,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat sampleWeights,
Mat varType) |
protected void |
finalize() |
int |
getCatCount(int vi) |
Mat |
getCatMap() |
Mat |
getCatOfs() |
Mat |
getClassLabels() |
Mat |
getDefaultSubstValues() |
int |
getLayout() |
Mat |
getMissing() |
int |
getNAllVars() |
void |
getNames(java.util.List<java.lang.String> names) |
long |
getNativeObjAddr() |
Mat |
getNormCatResponses() |
int |
getNSamples() |
int |
getNTestSamples() |
int |
getNTrainSamples() |
int |
getNVars() |
Mat |
getResponses() |
int |
getResponseType() |
void |
getSample(Mat varIdx,
int sidx,
float buf) |
Mat |
getSamples() |
Mat |
getSampleWeights() |
static Mat |
getSubMatrix(Mat matrix,
Mat idx,
int layout) |
static Mat |
getSubVector(Mat vec,
Mat idx) |
Mat |
getTestNormCatResponses() |
Mat |
getTestResponses() |
Mat |
getTestSampleIdx() |
Mat |
getTestSamples() |
Mat |
getTestSampleWeights() |
Mat |
getTrainNormCatResponses() |
Mat |
getTrainResponses() |
Mat |
getTrainSampleIdx() |
Mat |
getTrainSamples() |
Mat |
getTrainSamples(int layout) |
Mat |
getTrainSamples(int layout,
boolean compressSamples) |
Mat |
getTrainSamples(int layout,
boolean compressSamples,
boolean compressVars) |
Mat |
getTrainSampleWeights() |
void |
getValues(int vi,
Mat sidx,
float values) |
Mat |
getVarIdx() |
Mat |
getVarSymbolFlags() |
Mat |
getVarType() |
void |
setTrainTestSplit(int count) |
void |
setTrainTestSplit(int count,
boolean shuffle) |
void |
setTrainTestSplitRatio(double ratio) |
void |
setTrainTestSplitRatio(double ratio,
boolean shuffle) |
void |
shuffleTrainTest() |
public long getNativeObjAddr()
public static TrainData __fromPtr__(long addr)
public Mat getCatMap()
public Mat getCatOfs()
public Mat getClassLabels()
public Mat getDefaultSubstValues()
public Mat getMissing()
public Mat getNormCatResponses()
public Mat getResponses()
public Mat getSampleWeights()
public Mat getSamples()
public Mat getTestNormCatResponses()
public Mat getTestResponses()
public Mat getTestSampleIdx()
public Mat getTestSampleWeights()
public Mat getTestSamples()
public Mat getTrainNormCatResponses()
public Mat getTrainResponses()
public Mat getTrainSampleIdx()
public Mat getTrainSampleWeights()
public Mat getTrainSamples(int layout, boolean compressSamples, boolean compressVars)
public Mat getTrainSamples(int layout, boolean compressSamples)
public Mat getTrainSamples(int layout)
public Mat getTrainSamples()
public Mat getVarIdx()
public Mat getVarSymbolFlags()
public Mat getVarType()
public static TrainData create(Mat samples, int layout, Mat responses, Mat varIdx, Mat sampleIdx, Mat sampleWeights, Mat varType)
public static TrainData create(Mat samples, int layout, Mat responses, Mat varIdx, Mat sampleIdx, Mat sampleWeights)
public static TrainData create(Mat samples, int layout, Mat responses, Mat varIdx, Mat sampleIdx)
public int getCatCount(int vi)
public int getLayout()
public int getNAllVars()
public int getNSamples()
public int getNTestSamples()
public int getNTrainSamples()
public int getNVars()
public int getResponseType()
public void getNames(java.util.List<java.lang.String> names)
public void getSample(Mat varIdx, int sidx, float buf)
public void getValues(int vi, Mat sidx, float values)
public void setTrainTestSplit(int count, boolean shuffle)
public void setTrainTestSplit(int count)
public void setTrainTestSplitRatio(double ratio, boolean shuffle)
public void setTrainTestSplitRatio(double ratio)
public void shuffleTrainTest()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Generated on Sun Apr 7 2019 01:18:56 UTC / OpenCV 3.4.6