#include <ml.hpp>
Public Member Functions | |
CvDTreeTrainData () | |
CvDTreeTrainData (const CvMat *trainData, int tflag, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, const CvMat *varType=0, const CvMat *missingDataMask=0, const CvDTreeParams ¶ms=CvDTreeParams(), bool _shared=false, bool _add_labels=false) | |
virtual | ~CvDTreeTrainData () |
virtual void | set_data (const CvMat *trainData, int tflag, const CvMat *responses, const CvMat *varIdx=0, const CvMat *sampleIdx=0, const CvMat *varType=0, const CvMat *missingDataMask=0, const CvDTreeParams ¶ms=CvDTreeParams(), bool _shared=false, bool _add_labels=false, bool _update_data=false) |
virtual void | do_responses_copy () |
virtual void | get_vectors (const CvMat *_subsample_idx, float *values, uchar *missing, float *responses, bool get_class_idx=false) |
virtual CvDTreeNode * | subsample_data (const CvMat *_subsample_idx) |
virtual void | write_params (CvFileStorage *fs) const |
virtual void | read_params (CvFileStorage *fs, CvFileNode *node) |
virtual void | clear () |
int | get_num_classes () const |
int | get_var_type (int vi) const |
int | get_work_var_count () const |
virtual const float * | get_ord_responses (CvDTreeNode *n, float *values_buf, int *sample_indices_buf) |
virtual const int * | get_class_labels (CvDTreeNode *n, int *labels_buf) |
virtual const int * | get_cv_labels (CvDTreeNode *n, int *labels_buf) |
virtual const int * | get_sample_indices (CvDTreeNode *n, int *indices_buf) |
virtual const int * | get_cat_var_data (CvDTreeNode *n, int vi, int *cat_values_buf) |
virtual void | get_ord_var_data (CvDTreeNode *n, int vi, float *ord_values_buf, int *sorted_indices_buf, const float **ord_values, const int **sorted_indices, int *sample_indices_buf) |
virtual int | get_child_buf_idx (CvDTreeNode *n) |
virtual bool | set_params (const CvDTreeParams ¶ms) |
virtual CvDTreeNode * | new_node (CvDTreeNode *parent, int count, int storage_idx, int offset) |
virtual CvDTreeSplit * | new_split_ord (int vi, float cmp_val, int split_point, int inversed, float quality) |
virtual CvDTreeSplit * | new_split_cat (int vi, float quality) |
virtual void | free_node_data (CvDTreeNode *node) |
virtual void | free_train_data () |
virtual void | free_node (CvDTreeNode *node) |
size_t | get_length_subbuf () const |
Public Attributes | |
int | sample_count |
int | var_all |
int | var_count |
int | max_c_count |
int | ord_var_count |
int | cat_var_count |
int | work_var_count |
bool | have_labels |
bool | have_priors |
bool | is_classifier |
int | tflag |
const CvMat * | train_data |
const CvMat * | responses |
CvMat * | responses_copy |
int | buf_count |
int | buf_size |
bool | shared |
int | is_buf_16u |
CvMat * | cat_count |
CvMat * | cat_ofs |
CvMat * | cat_map |
CvMat * | counts |
CvMat * | buf |
CvMat * | direction |
CvMat * | split_buf |
CvMat * | var_idx |
CvMat * | var_type |
CvMat * | priors |
CvMat * | priors_mult |
CvDTreeParams | params |
CvMemStorage * | tree_storage |
CvMemStorage * | temp_storage |
CvDTreeNode * | data_root |
CvSet * | node_heap |
CvSet * | split_heap |
CvSet * | cv_heap |
CvSet * | nv_heap |
cv::RNG * | rng |
CvDTreeTrainData::CvDTreeTrainData | ( | ) |
CvDTreeTrainData::CvDTreeTrainData | ( | const CvMat * | trainData, |
int | tflag, | ||
const CvMat * | responses, | ||
const CvMat * | varIdx = 0 , |
||
const CvMat * | sampleIdx = 0 , |
||
const CvMat * | varType = 0 , |
||
const CvMat * | missingDataMask = 0 , |
||
const CvDTreeParams & | params = CvDTreeParams() , |
||
bool | _shared = false , |
||
bool | _add_labels = false |
||
) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in CvERTreeTrainData.
|
virtual |
|
virtual |
|
virtual |
Reimplemented in CvERTreeTrainData.
|
inline |
int CvDTreeTrainData::get_num_classes | ( | ) | const |
|
virtual |
|
virtual |
Reimplemented in CvERTreeTrainData.
|
virtual |
Reimplemented in CvERTreeTrainData.
|
virtual |
Reimplemented in CvERTreeTrainData.
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in CvERTreeTrainData.
|
virtual |
|
virtual |
Reimplemented in CvERTreeTrainData.
|
virtual |
CvMat* CvDTreeTrainData::buf |
int CvDTreeTrainData::buf_count |
int CvDTreeTrainData::buf_size |
CvMat* CvDTreeTrainData::cat_count |
CvMat* CvDTreeTrainData::cat_map |
CvMat* CvDTreeTrainData::cat_ofs |
int CvDTreeTrainData::cat_var_count |
CvMat* CvDTreeTrainData::counts |
CvSet* CvDTreeTrainData::cv_heap |
CvDTreeNode* CvDTreeTrainData::data_root |
CvMat* CvDTreeTrainData::direction |
bool CvDTreeTrainData::have_labels |
bool CvDTreeTrainData::have_priors |
int CvDTreeTrainData::is_buf_16u |
bool CvDTreeTrainData::is_classifier |
int CvDTreeTrainData::max_c_count |
CvSet* CvDTreeTrainData::node_heap |
CvSet* CvDTreeTrainData::nv_heap |
int CvDTreeTrainData::ord_var_count |
CvDTreeParams CvDTreeTrainData::params |
CvMat* CvDTreeTrainData::priors |
CvMat* CvDTreeTrainData::priors_mult |
const CvMat* CvDTreeTrainData::responses |
CvMat* CvDTreeTrainData::responses_copy |
cv::RNG* CvDTreeTrainData::rng |
int CvDTreeTrainData::sample_count |
bool CvDTreeTrainData::shared |
CvMat* CvDTreeTrainData::split_buf |
CvSet* CvDTreeTrainData::split_heap |
CvMemStorage* CvDTreeTrainData::temp_storage |
int CvDTreeTrainData::tflag |
const CvMat* CvDTreeTrainData::train_data |
CvMemStorage* CvDTreeTrainData::tree_storage |
int CvDTreeTrainData::var_all |
int CvDTreeTrainData::var_count |
CvMat* CvDTreeTrainData::var_idx |
CvMat* CvDTreeTrainData::var_type |
int CvDTreeTrainData::work_var_count |