|
OpenCV 2.4.8 | |||||||
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.
Constructor Summary | |
---|---|
CvERTrees()
|
Method Summary | |
---|---|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CvERTrees()
Method Detail |
---|
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
|
OpenCV 2.4.8 Documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |