Package org.opencv.ml
Class Boost
java.lang.Object
org.opencv.core.Algorithm
org.opencv.ml.StatModel
org.opencv.ml.DTrees
org.opencv.ml.Boost
public class Boost extends DTrees
Boosted tree classifier derived from DTrees
SEE: REF: ml_intro_boost
-
Field Summary
Fields Modifier and Type Field Description static intDISCRETEstatic intGENTLEstatic intLOGITstatic intREALFields inherited from class org.opencv.ml.DTrees
PREDICT_AUTO, PREDICT_MASK, PREDICT_MAX_VOTE, PREDICT_SUMFields inherited from class org.opencv.ml.StatModel
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL -
Constructor Summary
Constructors Modifier Constructor Description protectedBoost(long addr) -
Method Summary
Modifier and Type Method Description static Boost__fromPtr__(long addr)static Boostcreate()Creates the empty model.protected voidfinalize()intgetBoostType()SEE: setBoostTypeintgetWeakCount()SEE: setWeakCountdoublegetWeightTrimRate()SEE: setWeightTrimRatestatic Boostload(String filepath)Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk.static Boostload(String filepath, String nodeName)Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk.voidsetBoostType(int val)getBoostType SEE: getBoostTypevoidsetWeakCount(int val)getWeakCount SEE: getWeakCountvoidsetWeightTrimRate(double val)getWeightTrimRate SEE: getWeightTrimRateMethods inherited from class org.opencv.ml.DTrees
getCVFolds, getMaxCategories, getMaxDepth, getMinSampleCount, getPriors, getRegressionAccuracy, getTruncatePrunedTree, getUse1SERule, getUseSurrogates, setCVFolds, setMaxCategories, setMaxDepth, setMinSampleCount, setPriors, setRegressionAccuracy, setTruncatePrunedTree, setUse1SERule, setUseSurrogatesMethods inherited from class org.opencv.ml.StatModel
calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, train, train, trainMethods inherited from class org.opencv.core.Algorithm
clear, getDefaultName, getNativeObjAddr, save
-
Field Details
-
DISCRETE
- See Also:
- Constant Field Values
-
REAL
- See Also:
- Constant Field Values
-
LOGIT
- See Also:
- Constant Field Values
-
GENTLE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
__fromPtr__
-
getBoostType
SEE: setBoostType- Returns:
- automatically generated
-
setBoostType
getBoostType SEE: getBoostType- Parameters:
val- automatically generated
-
getWeakCount
SEE: setWeakCount- Returns:
- automatically generated
-
setWeakCount
getWeakCount SEE: getWeakCount- Parameters:
val- automatically generated
-
getWeightTrimRate
SEE: setWeightTrimRate- Returns:
- automatically generated
-
setWeightTrimRate
getWeightTrimRate SEE: getWeightTrimRate- Parameters:
val- automatically generated
-
create
Creates the empty model. Use StatModel::train to train the model, Algorithm::load<Boost>(filename) to load the pre-trained model.- Returns:
- automatically generated
-
load
Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk. Load the Boost from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier- Parameters:
filepath- path to serialized BoostnodeName- name of node containing the classifier- Returns:
- automatically generated
-
load
Loads and creates a serialized Boost from a file Use Boost::save to serialize and store an RTree to disk. Load the Boost from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier- Parameters:
filepath- path to serialized Boost- Returns:
- automatically generated
-
finalize
-