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 int getMaxCategories()
public void setMaxCategories(int val)
val
- automatically generatedpublic int getMaxDepth()
public void setMaxDepth(int val)
val
- automatically generatedpublic int getMinSampleCount()
public void setMinSampleCount(int val)
val
- automatically generatedpublic int getCVFolds()
public void setCVFolds(int val)
val
- automatically generatedpublic boolean getUseSurrogates()
public void setUseSurrogates(boolean val)
val
- automatically generatedpublic boolean getUse1SERule()
public void setUse1SERule(boolean val)
val
- automatically generatedpublic boolean getTruncatePrunedTree()
public void setTruncatePrunedTree(boolean val)
val
- automatically generatedpublic float getRegressionAccuracy()
public void setRegressionAccuracy(float val)
val
- automatically generatedpublic Mat getPriors()
public void setPriors(Mat val)
val
- automatically generatedpublic 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 DTreeCopyright © 2024. All rights reserved.