#include <adaboost_ecoc.h>
Inheritance diagram for AdaBoost_ECOC:
Public Types | |
enum | PARTITION_METHOD { RANDOM_HALF, MAX_CUT, MAX_CUT_GREEDY } |
Public Member Functions | |
AdaBoost_ECOC () | |
AdaBoost_ECOC (std::istream &is) | |
virtual const id_t & | id () const |
virtual AdaBoost_ECOC * | create () const |
Create a new object using the default constructor. | |
virtual AdaBoost_ECOC * | clone () const |
Create a new object by replicating itself. | |
void | set_partition_method (PARTITION_METHOD m) |
Protected Member Functions | |
pDataWgt | smpwgt_with_partition (const ECOC_VECTOR &) |
virtual void | reset_training () |
Prepare auxiliary variables for current n_in_agg. | |
virtual bool | ECOC_partition (UINT, ECOC_VECTOR &) |
virtual pLearnModel | train_with_partition (ECOC_VECTOR &) |
virtual REAL | assign_weight (const ECOC_VECTOR &, const LearnModel &) |
virtual void | update_training (const ECOC_VECTOR &) |
Update those auxiliary variables after this round of learning. | |
std::vector< std::vector< REAL > > | confusion_matrix () const |
ECOC_VECTOR | max_cut (UINT) const |
test all combinations to find out the max-cut | |
ECOC_VECTOR | max_cut_greedy (UINT) const |
nr (or nr+1) is the maximal # of classes that can be "colored" | |
ECOC_VECTOR | random_half (UINT) const |
Protected Attributes | |
PARTITION_METHOD | par_method |
JointWgt | joint_wgt |
std::vector< bool > | cur_err |
pDataWgt | cur_smpwgt |
Definition at line 21 of file adaboost_ecoc.h.
|
Definition at line 23 of file adaboost_ecoc.h. |
|
Definition at line 33 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::clone(), and AdaBoost_ECOC::create(). |
|
Definition at line 34 of file adaboost_ecoc.h. |
|
Reimplemented from MultiClass_ECOC. Definition at line 198 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::cur_err, and AdaBoost_ECOC::cur_smpwgt. |
|
Create a new object by replicating itself.
return new Derived(*this);
Reimplemented from MultiClass_ECOC. Definition at line 38 of file adaboost_ecoc.h. References AdaBoost_ECOC::AdaBoost_ECOC(). |
|
Definition at line 44 of file adaboost_ecoc.cpp. References MultiClass_ECOC::ex_class, AdaBoost_ECOC::joint_wgt, LearnModel::n_samples, and MultiClass_ECOC::nclass. Referenced by AdaBoost_ECOC::max_cut(), and AdaBoost_ECOC::max_cut_greedy(). |
|
Create a new object using the default constructor. The code for a derived class Derived is always return new Derived(); Reimplemented from MultiClass_ECOC. Definition at line 37 of file adaboost_ecoc.h. References AdaBoost_ECOC::AdaBoost_ECOC(). |
|
Reimplemented from MultiClass_ECOC. Definition at line 136 of file adaboost_ecoc.cpp. References MultiClass_ECOC::ECOC_partition(), AdaBoost_ECOC::max_cut(), AdaBoost_ECOC::MAX_CUT, AdaBoost_ECOC::max_cut_greedy(), AdaBoost_ECOC::MAX_CUT_GREEDY, MultiClass_ECOC::n_class(), AdaBoost_ECOC::par_method, AdaBoost_ECOC::random_half(), and AdaBoost_ECOC::RANDOM_HALF. |
|
Reimplemented from MultiClass_ECOC. |
|
test all combinations to find out the max-cut
Definition at line 58 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::confusion_matrix(), and gray_next(). Referenced by AdaBoost_ECOC::ECOC_partition(). |
|
nr (or nr+1) is the maximal # of classes that can be "colored"
Definition at line 86 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::confusion_matrix(). Referenced by AdaBoost_ECOC::ECOC_partition(). |
|
Definition at line 120 of file adaboost_ecoc.cpp. Referenced by AdaBoost_ECOC::ECOC_partition(). |
|
Prepare auxiliary variables for current n_in_agg.
Reimplemented from MultiClass_ECOC. Definition at line 17 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::cur_err, MultiClass_ECOC::ex_class, AdaBoost_ECOC::joint_wgt, MultiClass_ECOC::n_class(), Aggregating::n_in_agg, LearnModel::n_samples, and LearnModel::ptw. |
|
Definition at line 41 of file adaboost_ecoc.h. References AdaBoost_ECOC::par_method. |
|
Definition at line 160 of file adaboost_ecoc.cpp. References MultiClass_ECOC::ex_class, AdaBoost_ECOC::joint_wgt, MultiClass_ECOC::n_class(), and LearnModel::n_samples. Referenced by AdaBoost_ECOC::train_with_partition(). |
|
Reimplemented from MultiClass_ECOC. Definition at line 178 of file adaboost_ecoc.cpp. References dataset::append(), AdaBoost_ECOC::cur_err, AdaBoost_ECOC::cur_smpwgt, MultiClass_ECOC::ex_class, LearnModel::get_output(), Aggregating::lm_base, LearnModel::ptd, LearnModel::ptw, LearnModel::set_train_data(), AdaBoost_ECOC::smpwgt_with_partition(), and LearnModel::train(). |
|
Update those auxiliary variables after this round of learning.
Reimplemented from MultiClass_ECOC. Definition at line 215 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::cur_err, MultiClass_ECOC::ex_class, AdaBoost_ECOC::joint_wgt, MultiClass_ECOC::lm_wgt, MultiClass_ECOC::n_class(), and Aggregating::n_in_agg. |
|
Definition at line 46 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::assign_weight(), AdaBoost_ECOC::reset_training(), AdaBoost_ECOC::train_with_partition(), and AdaBoost_ECOC::update_training(). |
|
Definition at line 47 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::assign_weight(), and AdaBoost_ECOC::train_with_partition(). |
|
Definition at line 45 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::confusion_matrix(), AdaBoost_ECOC::reset_training(), AdaBoost_ECOC::smpwgt_with_partition(), and AdaBoost_ECOC::update_training(). |
|
Definition at line 30 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::ECOC_partition(), and AdaBoost_ECOC::set_partition_method(). |