@Namespace(value="cv::ml") @Properties(inherit=opencv_ml.class) public class Boost extends DTrees
ml_intro_boost
DTrees.Node, DTrees.Split
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator
Modifier and Type | Field and Description |
---|---|
static int |
DISCRETE
enum cv::ml::Boost::Types
|
static int |
GENTLE
enum cv::ml::Boost::Types
|
static int |
LOGIT
enum cv::ml::Boost::Types
|
static int |
REAL
enum cv::ml::Boost::Types
|
PREDICT_AUTO, PREDICT_MASK, PREDICT_MAX_VOTE, PREDICT_SUM
COMPRESSED_INPUT, PREPROCESSED_INPUT, RAW_OUTPUT, UPDATE_MODEL
Constructor and Description |
---|
Boost(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static Boost |
create()
Creates the empty model.
|
int |
getBoostType() |
int |
getWeakCount() |
double |
getWeightTrimRate() |
static Boost |
load(BytePointer filepath) |
static Boost |
load(BytePointer filepath,
BytePointer nodeName)
\brief Loads and creates a serialized Boost from a file
Use Boost::save to serialize and store an RTree to disk.
|
static Boost |
load(String filepath) |
static Boost |
load(String filepath,
String nodeName) |
void |
setBoostType(int val)
\copybrief getBoostType @see getBoostType
|
void |
setWeakCount(int val)
\copybrief getWeakCount @see getWeakCount
|
void |
setWeightTrimRate(double val)
\copybrief getWeightTrimRate @see getWeightTrimRate
|
getCVFolds, getMaxCategories, getMaxDepth, getMinSampleCount, getNodes, getPriors, getRegressionAccuracy, getRoots, getSplits, getSubsets, getTruncatePrunedTree, getUse1SERule, getUseSurrogates, setCVFolds, setMaxCategories, setMaxDepth, setMinSampleCount, setPriors, setRegressionAccuracy, setTruncatePrunedTree, setUse1SERule, setUseSurrogates
calcError, calcError, calcError, empty, getVarCount, isClassifier, isTrained, predict, predict, predict, predict, predict, predict, train, train, train, train, train
loadANN_MLP, loadANN_MLP, loadBoost, loadBoost, loadDTrees, loadDTrees, loadEM, loadEM, loadKNearest, loadKNearest, loadLogisticRegression, loadLogisticRegression, loadNormalBayesClassifier, loadNormalBayesClassifier, loadRTrees, loadRTrees, loadSVM, loadSVM
clear, getDefaultName, position, read, save, save, write, write, write
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public static final int DISCRETE
public static final int REAL
public static final int LOGIT
public static final int GENTLE
public Boost(Pointer p)
Pointer.Pointer(Pointer)
.public int getBoostType()
setBoostType
public void setBoostType(int val)
public int getWeakCount()
setWeakCount
public void setWeakCount(int val)
public double getWeightTrimRate()
setWeightTrimRate
public void setWeightTrimRate(double val)
@opencv_core.Ptr public static Boost create()
@opencv_core.Ptr public static Boost load(@opencv_core.Str BytePointer filepath, @opencv_core.Str BytePointer nodeName)
filepath
- path to serialized BoostnodeName
- name of node containing the classifier@opencv_core.Ptr public static Boost load(@opencv_core.Str BytePointer filepath)
@opencv_core.Ptr public static Boost load(@opencv_core.Str String filepath, @opencv_core.Str String nodeName)
@opencv_core.Ptr public static Boost load(@opencv_core.Str String filepath)
Copyright © 2019. All rights reserved.