public class DTrees extends StatModel
Modifier and Type | Field and Description |
---|---|
static int |
PREDICT_AUTO |
static int |
PREDICT_MASK |
static int |
PREDICT_MAX_VOTE |
static int |
PREDICT_SUM |
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier | Constructor and Description |
---|---|
protected |
DTrees(long addr) |
Modifier and Type | Method and Description |
---|---|
static DTrees |
__fromPtr__(long addr) |
static DTrees |
create()
Creates the empty model
The static method creates empty decision tree with the specified parameters.
|
protected void |
finalize() |
int |
getCVFolds()
SEE: setCVFolds
|
int |
getMaxCategories()
SEE: setMaxCategories
|
int |
getMaxDepth()
SEE: setMaxDepth
|
int |
getMinSampleCount()
SEE: setMinSampleCount
|
Mat |
getPriors()
SEE: setPriors
|
float |
getRegressionAccuracy()
SEE: setRegressionAccuracy
|
boolean |
getTruncatePrunedTree()
SEE: setTruncatePrunedTree
|
boolean |
getUse1SERule()
SEE: setUse1SERule
|
boolean |
getUseSurrogates()
SEE: setUseSurrogates
|
static DTrees |
load(String filepath)
Loads and creates a serialized DTrees from a file
Use DTree::save to serialize and store an DTree to disk.
|
static DTrees |
load(String filepath,
String nodeName)
Loads and creates a serialized DTrees from a file
Use DTree::save to serialize and store an DTree to disk.
|
void |
setCVFolds(int val)
getCVFolds SEE: getCVFolds
|
void |
setMaxCategories(int val)
getMaxCategories SEE: getMaxCategories
|
void |
setMaxDepth(int val)
getMaxDepth SEE: getMaxDepth
|
void |
setMinSampleCount(int val)
getMinSampleCount SEE: getMinSampleCount
|
void |
setPriors(Mat val)
getPriors SEE: getPriors
|
void |
setRegressionAccuracy(float val)
getRegressionAccuracy SEE: getRegressionAccuracy
|
void |
setTruncatePrunedTree(boolean val)
getTruncatePrunedTree SEE: getTruncatePrunedTree
|
void |
setUse1SERule(boolean val)
getUse1SERule SEE: getUse1SERule
|
void |
setUseSurrogates(boolean val)
getUseSurrogates SEE: getUseSurrogates
|
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
clear, getDefaultName, getNativeObjAddr, save
public static final int PREDICT_AUTO
public static final int PREDICT_SUM
public static final int PREDICT_MAX_VOTE
public static final int PREDICT_MASK
public static DTrees __fromPtr__(long addr)
public Mat getPriors()
public static DTrees create()
public static DTrees load(String filepath, String nodeName)
filepath
- path to serialized DTreenodeName
- name of node containing the classifierpublic static DTrees load(String filepath)
filepath
- path to serialized DTreepublic boolean getTruncatePrunedTree()
public boolean getUse1SERule()
public boolean getUseSurrogates()
public float getRegressionAccuracy()
public int getCVFolds()
public int getMaxCategories()
public int getMaxDepth()
public int getMinSampleCount()
public void setCVFolds(int val)
val
- automatically generatedpublic void setMaxCategories(int val)
val
- automatically generatedpublic void setMaxDepth(int val)
val
- automatically generatedpublic void setMinSampleCount(int val)
val
- automatically generatedpublic void setPriors(Mat val)
val
- automatically generatedpublic void setRegressionAccuracy(float val)
val
- automatically generatedpublic void setTruncatePrunedTree(boolean val)
val
- automatically generatedpublic void setUse1SERule(boolean val)
val
- automatically generatedpublic void setUseSurrogates(boolean val)
val
- automatically generatedCopyright © 2020. All rights reserved.