public class Boost extends DTrees
Modifier and Type | Field and Description |
---|---|
static int |
DISCRETE |
static int |
GENTLE |
static int |
LOGIT |
static int |
REAL |
PREDICT_AUTO, PREDICT_MASK, PREDICT_MAX_VOTE, PREDICT_SUM
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Modifier and Type | Method and Description |
---|---|
static Boost |
__fromPtr__(long addr) |
static Boost |
create()
Creates the empty model.
|
int |
getBoostType()
SEE: setBoostType
|
int |
getWeakCount()
SEE: setWeakCount
|
double |
getWeightTrimRate()
SEE: setWeightTrimRate
|
static Boost |
load(java.lang.String filepath)
Loads and creates a serialized Boost from a file
Use Boost::save to serialize and store an RTree to disk.
|
static Boost |
load(java.lang.String filepath,
java.lang.String nodeName)
Loads and creates a serialized Boost from a file
Use Boost::save to serialize and store an RTree to disk.
|
void |
setBoostType(int val)
getBoostType SEE: getBoostType
|
void |
setWeakCount(int val)
getWeakCount SEE: getWeakCount
|
void |
setWeightTrimRate(double val)
getWeightTrimRate SEE: getWeightTrimRate
|
getCVFolds, getMaxCategories, getMaxDepth, getMinSampleCount, getPriors, getRegressionAccuracy, getTruncatePrunedTree, getUse1SERule, getUseSurrogates, setCVFolds, setMaxCategories, setMaxDepth, setMinSampleCount, setPriors, setRegressionAccuracy, setTruncatePrunedTree, setUse1SERule, setUseSurrogates
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, train
clear, getDefaultName, getNativeObjAddr, save
public static final int DISCRETE
public static final int GENTLE
public static final int LOGIT
public static final int REAL
public static Boost __fromPtr__(long addr)
public static Boost create()
public int getBoostType()
public int getWeakCount()
public double getWeightTrimRate()
public static Boost load(java.lang.String filepath)
filepath
- path to serialized Boostpublic static Boost load(java.lang.String filepath, java.lang.String nodeName)
filepath
- path to serialized BoostnodeName
- name of node containing the classifierpublic void setBoostType(int val)
val
- automatically generatedpublic void setWeakCount(int val)
val
- automatically generatedpublic void setWeightTrimRate(double val)
val
- automatically generatedGenerated on 2019-12-20 14:24:32 / OpenCV 4.2.0