#include <adaboost_ecoc.h>
Inheritance diagram for AdaBoost_ECOC:


Public Types | |
| enum | PARTITION_METHOD {  RANDOM_HALF, MAX_CUT, MAX_CUT_GREEDY, RANDOM_2, MAX_2 }  | 
Public Member Functions | |
| AdaBoost_ECOC () | |
| AdaBoost_ECOC (const MultiClass_ECOC &s) | |
| 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 &) const | 
| pLearnModel | train_with_full_partition (const ECOC_VECTOR &) const | 
| virtual void | setup_aux () | 
| Prepare auxiliary variables for current n_in_agg.   | |
| virtual bool | ECOC_partition (UINT, ECOC_VECTOR &) const | 
| virtual pLearnModel | train_with_partition (ECOC_VECTOR &) const | 
| virtual REAL | assign_weight (const ECOC_VECTOR &, const LearnModel &) const | 
| virtual void | update_aux (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 | 
| set up by train_with_partition(); used by assign_weight().   | |
Definition at line 21 of file adaboost_ecoc.h.
      
  | 
  
| 
 
 Definition at line 23 of file adaboost_ecoc.h.  | 
  
      
  | 
  
| 
 
 Definition at line 34 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::clone(), and AdaBoost_ECOC::create().  | 
  
      
  | 
  
| 
 
 Definition at line 35 of file adaboost_ecoc.h.  | 
  
      
  | 
  
| 
 
 Definition at line 37 of file adaboost_ecoc.h.  | 
  
      
  | 
  ||||||||||||
| 
 
 Reimplemented from MultiClass_ECOC. Definition at line 219 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. Reimplemented in AdaBoost_ERP. Definition at line 41 of file adaboost_ecoc.h. References AdaBoost_ECOC::AdaBoost_ECOC().  | 
  
      
  | 
  
| 
 
 Definition at line 59 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. Reimplemented in AdaBoost_ERP. Definition at line 40 of file adaboost_ecoc.h. References AdaBoost_ECOC::AdaBoost_ECOC().  | 
  
      
  | 
  ||||||||||||
| 
 
 Reimplemented from MultiClass_ECOC. Reimplemented in AdaBoost_ERP. Definition at line 151 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. Referenced by AdaBoost_ERP::ECOC_partition().  | 
  
      
  | 
  
| 
 
 
 Reimplemented from MultiClass_ECOC. Reimplemented in AdaBoost_ERP.  | 
  
      
  | 
  
| 
 test all combinations to find out the max-cut 
 Definition at line 73 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 101 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::confusion_matrix(). Referenced by AdaBoost_ERP::ECOC_partition(), and AdaBoost_ECOC::ECOC_partition().  | 
  
      
  | 
  
| 
 
 Definition at line 135 of file adaboost_ecoc.cpp. Referenced by AdaBoost_ERP::ECOC_partition(), and AdaBoost_ECOC::ECOC_partition().  | 
  
      
  | 
  
| 
 
 Definition at line 44 of file adaboost_ecoc.h. References AdaBoost_ECOC::par_method.  | 
  
      
  | 
  
| 
 Prepare auxiliary variables for current n_in_agg. 
 Reimplemented from MultiClass_ECOC. Definition at line 18 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::cur_err, MultiClass_ECOC::distances(), MultiClass_ECOC::ex_class, AdaBoost_ECOC::joint_wgt, MultiClass_ECOC::n_class(), Aggregating::n_in_agg, LearnModel::n_samples, MultiClass_ECOC::nclass, and LearnModel::ptw.  | 
  
      
  | 
  
| 
 
 Definition at line 175 of file adaboost_ecoc.cpp. References MultiClass_ECOC::ex_class, MultiClass_ECOC::is_full_partition(), AdaBoost_ECOC::joint_wgt, MultiClass_ECOC::n_class(), and LearnModel::n_samples. Referenced by AdaBoost_ECOC::train_with_full_partition().  | 
  
      
  | 
  
| 
 
 Definition at line 194 of file adaboost_ecoc.cpp. References dataset::append(), AdaBoost_ECOC::cur_smpwgt, MultiClass_ECOC::ex_class, Aggregating::lm_base, LearnModel::ptd, LearnModel::set_train_data(), AdaBoost_ECOC::smpwgt_with_partition(), and LearnModel::train(). Referenced by AdaBoost_ERP::train_with_partition(), and AdaBoost_ECOC::train_with_partition().  | 
  
      
  | 
  
| 
 
 Reimplemented from MultiClass_ECOC. Reimplemented in AdaBoost_ERP. Definition at line 208 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::cur_err, MultiClass_ECOC::ex_class, MultiClass_ECOC::is_full_partition(), LearnModel::ptd, LearnModel::ptw, and AdaBoost_ECOC::train_with_full_partition().  | 
  
      
  | 
  
| 
 Update those auxiliary variables after this round of learning. 
 Reimplemented from MultiClass_ECOC. Definition at line 236 of file adaboost_ecoc.cpp. References AdaBoost_ECOC::cur_err, MultiClass_ECOC::ex_class, MultiClass_ECOC::is_full_partition(), AdaBoost_ECOC::joint_wgt, MultiClass_ECOC::lm_wgt, and Aggregating::n_in_agg.  | 
  
      
  | 
  
| 
 set up by train_with_partition(); used by assign_weight() and update_aux(). Definition at line 52 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::assign_weight(), AdaBoost_ECOC::setup_aux(), AdaBoost_ERP::train_with_partition(), AdaBoost_ECOC::train_with_partition(), and AdaBoost_ECOC::update_aux().  | 
  
      
  | 
  
| 
 set up by train_with_partition(); used by assign_weight(). 
 Definition at line 54 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::assign_weight(), and AdaBoost_ECOC::train_with_full_partition().  | 
  
      
  | 
  
| 
 set up by setup_aux(); updated by update_aux(); used by a lot of functions here. Definition at line 49 of file adaboost_ecoc.h. Referenced by AdaBoost_ECOC::confusion_matrix(), AdaBoost_ECOC::setup_aux(), AdaBoost_ECOC::smpwgt_with_partition(), AdaBoost_ERP::train_with_partial_partition(), AdaBoost_ERP::train_with_partition(), and AdaBoost_ECOC::update_aux().  | 
  
      
  | 
  
| 
 
 Definition at line 31 of file adaboost_ecoc.h. Referenced by AdaBoost_ERP::ECOC_partition(), AdaBoost_ECOC::ECOC_partition(), and AdaBoost_ECOC::set_partition_method().  | 
  
 1.4.6