|
OpenCV 2.4.2 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opencv.ml.CvStatModel org.opencv.ml.CvRTrees org.opencv.ml.CvERTrees
public class CvERTrees
The class implements the Extremely randomized trees algorithm.
CvERTrees
is inherited from "CvRTrees" and has the same
interface, so see description of "CvRTrees" class to get details. To set the
training parameters of Extremely randomized trees the same class "CvRTParams"
is used.
Field Summary |
---|
Fields inherited from class org.opencv.ml.CvStatModel |
---|
nativeObj |
Constructor Summary | |
---|---|
|
CvERTrees()
|
protected |
CvERTrees(long addr)
|
Method Summary | |
---|---|
protected void |
finalize()
|
boolean |
train(Mat trainData,
int tflag,
Mat responses)
Trains the Random Trees model. |
boolean |
train(Mat trainData,
int tflag,
Mat responses,
Mat varIdx,
Mat sampleIdx,
Mat varType,
Mat missingDataMask,
CvRTParams params)
Trains the Random Trees model. |
Methods inherited from class org.opencv.ml.CvRTrees |
---|
clear, getVarImportance, predict_prob, predict_prob, predict, predict |
Methods inherited from class org.opencv.ml.CvStatModel |
---|
load, load, save, save |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CvERTrees()
protected CvERTrees(long addr)
Method Detail |
---|
protected void finalize() throws java.lang.Throwable
finalize
in class CvRTrees
java.lang.Throwable
public boolean train(Mat trainData, int tflag, Mat responses)
CvRTrees
Trains the Random Trees model.
The method "CvRTrees.train" is very similar to the method "CvDTree.train"
and follows the generic method "CvStatModel.train" conventions. All the
parameters specific to the algorithm training are passed as a "CvRTParams"
instance. The estimate of the training error (oob-error
) is
stored in the protected class member oob_error
.
The function is parallelized with the TBB library.
train
in class CvRTrees
trainData
- a trainDatatflag
- a tflagresponses
- a responsespublic boolean train(Mat trainData, int tflag, Mat responses, Mat varIdx, Mat sampleIdx, Mat varType, Mat missingDataMask, CvRTParams params)
CvRTrees
Trains the Random Trees model.
The method "CvRTrees.train" is very similar to the method "CvDTree.train"
and follows the generic method "CvStatModel.train" conventions. All the
parameters specific to the algorithm training are passed as a "CvRTParams"
instance. The estimate of the training error (oob-error
) is
stored in the protected class member oob_error
.
The function is parallelized with the TBB library.
train
in class CvRTrees
trainData
- a trainDatatflag
- a tflagresponses
- a responsesvarIdx
- a varIdxsampleIdx
- a sampleIdxvarType
- a varTypemissingDataMask
- a missingDataMaskparams
- a params
|
Official OpenCV 2.4 Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |