#include <ml.hpp>
Public Types | |
enum | { DISCRETE =0, REAL =1, LOGIT =2, GENTLE =3 } |
enum | { DEFAULT =0, GINI =1, MISCLASS =3, SQERR =4 } |
Public Member Functions | |
CvBoost () | |
virtual | ~CvBoost () |
CvBoost (const CvMat *trainData, int tflag, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, const CvMat *varType=0, const CvMat *missingDataMask=0, CvBoostParams params=CvBoostParams()) | |
virtual bool | train (const CvMat *trainData, int tflag, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, const CvMat *varType=0, const CvMat *missingDataMask=0, CvBoostParams params=CvBoostParams(), bool update=false) |
virtual bool | train (CvMLData *data, CvBoostParams params=CvBoostParams(), bool update=false) |
virtual float | predict (const CvMat *sample, const CvMat *missing=0, CvMat *weak_responses=0, CvSlice slice=CV_WHOLE_SEQ, bool raw_mode=false, bool return_sum=false) const |
CvBoost (const cv::Mat &trainData, int tflag, const cv::Mat &responses, const cv::Mat &varIdx=cv::Mat(), const cv::Mat &sampleIdx=cv::Mat(), const cv::Mat &varType=cv::Mat(), const cv::Mat &missingDataMask=cv::Mat(), CvBoostParams params=CvBoostParams()) | |
virtual bool | train (const cv::Mat &trainData, int tflag, const cv::Mat &responses, const cv::Mat &varIdx=cv::Mat(), const cv::Mat &sampleIdx=cv::Mat(), const cv::Mat &varType=cv::Mat(), const cv::Mat &missingDataMask=cv::Mat(), CvBoostParams params=CvBoostParams(), bool update=false) |
virtual float | predict (const cv::Mat &sample, const cv::Mat &missing=cv::Mat(), const cv::Range &slice=cv::Range::all(), bool rawMode=false, bool returnSum=false) const |
virtual float | calc_error (CvMLData *_data, int type, std::vector< float > *resp=0) |
virtual void | prune (CvSlice slice) |
virtual void | clear () |
virtual void | write (CvFileStorage *storage, const char *name) const |
virtual void | read (CvFileStorage *storage, CvFileNode *node) |
virtual const CvMat * | get_active_vars (bool absolute_idx=true) |
CvSeq * | get_weak_predictors () |
CvMat * | get_weights () |
CvMat * | get_subtree_weights () |
CvMat * | get_weak_response () |
const CvBoostParams & | get_params () const |
const CvDTreeTrainData * | get_data () const |
Public Member Functions inherited from CvStatModel | |
CvStatModel () | |
virtual | ~CvStatModel () |
virtual void | save (const char *filename, const char *name=0) const |
virtual void | load (const char *filename, const char *name=0) |
Protected Member Functions | |
void | update_weights_impl (CvBoostTree *tree, double initial_weights[2]) |
virtual bool | set_params (const CvBoostParams ¶ms) |
virtual void | update_weights (CvBoostTree *tree) |
virtual void | trim_weights () |
virtual void | write_params (CvFileStorage *fs) const |
virtual void | read_params (CvFileStorage *fs, CvFileNode *node) |
Protected Attributes | |
CvDTreeTrainData * | data |
CvBoostParams | params |
CvSeq * | weak |
CvMat * | active_vars |
CvMat * | active_vars_abs |
bool | have_active_cat_vars |
CvMat * | orig_response |
CvMat * | sum_response |
CvMat * | weak_eval |
CvMat * | subsample_mask |
CvMat * | weights |
CvMat * | subtree_weights |
bool | have_subsample |
Protected Attributes inherited from CvStatModel | |
const char * | default_model_name |
CvBoost::CvBoost | ( | ) |
|
virtual |
CvBoost::CvBoost | ( | const CvMat * | trainData, |
int | tflag, | ||
const CvMat * | responses, | ||
const CvMat * | varIdx = 0 , |
||
const CvMat * | sampleIdx = 0 , |
||
const CvMat * | varType = 0 , |
||
const CvMat * | missingDataMask = 0 , |
||
CvBoostParams | params = CvBoostParams() |
||
) |
CvBoost::CvBoost | ( | const cv::Mat & | trainData, |
int | tflag, | ||
const cv::Mat & | responses, | ||
const cv::Mat & | varIdx = cv::Mat() , |
||
const cv::Mat & | sampleIdx = cv::Mat() , |
||
const cv::Mat & | varType = cv::Mat() , |
||
const cv::Mat & | missingDataMask = cv::Mat() , |
||
CvBoostParams | params = CvBoostParams() |
||
) |
|
virtual |
|
virtual |
Reimplemented from CvStatModel.
|
virtual |
const CvDTreeTrainData* CvBoost::get_data | ( | ) | const |
const CvBoostParams& CvBoost::get_params | ( | ) | const |
CvMat* CvBoost::get_subtree_weights | ( | ) |
CvSeq* CvBoost::get_weak_predictors | ( | ) |
CvMat* CvBoost::get_weak_response | ( | ) |
CvMat* CvBoost::get_weights | ( | ) |
|
virtual |
|
virtual |
|
virtual |
Reimplemented from CvStatModel.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
virtual |
Reimplemented from CvStatModel.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |