#include <adaboost.h>
Inheritance diagram for AdaBoost:
Public Member Functions | |
AdaBoost (bool cvx=false, const cost::Cost &c=cost::_cost) | |
AdaBoost (const Boosting &s) | |
AdaBoost (std::istream &is) | |
virtual const id_t & | id () const |
virtual AdaBoost * | create () const |
Create a new object using the default constructor. | |
virtual AdaBoost * | clone () const |
Create a new object by replicating itself. | |
virtual void | train () |
Train with preset data set and sample weight. | |
Protected Member Functions | |
virtual REAL | convex_weight (const DataWgt &, const LearnModel &) |
virtual REAL | linear_weight (const DataWgt &, const LearnModel &) |
virtual void | linear_smpwgt (DataWgt &) |
Protected Attributes | |
std::vector< REAL > | cur_err |
data only valid within training (remove?) |
AdaBoost can be seen as gradient descent in the function space where the pointwise cost functional is defined as
Definition at line 21 of file adaboost.h.
|
Definition at line 23 of file adaboost.h. Referenced by AdaBoost::clone(), and AdaBoost::create(). |
|
Definition at line 25 of file adaboost.h. |
|
Definition at line 26 of file adaboost.h. |
|
Create a new object by replicating itself.
return new Derived(*this);
Reimplemented from Boosting. Definition at line 30 of file adaboost.h. References AdaBoost::AdaBoost(). |
|
Assign weight to a newly generated hypothesis. We assume l is not but will be added.
Reimplemented from Boosting. Definition at line 43 of file adaboost.cpp. References OBJ_FUNC_UNDEFINED. |
|
Create a new object using the default constructor. The code for a derived class Derived is always return new Derived(); Reimplemented from Boosting. Definition at line 29 of file adaboost.h. References AdaBoost::AdaBoost(). |
|
Reimplemented from Boosting. |
|
Reimplemented from Boosting. Definition at line 53 of file adaboost.cpp. References AdaBoost::cur_err, Boosting::lm_wgt, Aggregating::n_in_agg, and LearnModel::n_samples. |
|
Reimplemented from Boosting. Definition at line 20 of file adaboost.cpp. References LearnModel::c_error(), AdaBoost::cur_err, LearnModel::exact_dimensions(), LearnModel::get_output(), LearnModel::n_samples, LearnModel::ptd, and LearnModel::train_data(). |
|
Train with preset data set and sample weight.
Reimplemented from Boosting. Definition at line 14 of file adaboost.cpp. References AdaBoost::cur_err, LearnModel::n_samples, and Boosting::train(). |
|
data only valid within training (remove?)
Definition at line 36 of file adaboost.h. Referenced by AdaBoost::linear_smpwgt(), AdaBoost::linear_weight(), and AdaBoost::train(). |