#include <bagging.h>
Inheritance diagram for Bagging:
Public Member Functions | |
Bagging (UINT max=0) | |
Bagging (std::istream &is) | |
virtual const id_t & | id () const |
virtual Bagging * | create () const |
Create a new object using the default constructor. | |
virtual Bagging * | clone () const |
Create a new object by replicating itself. | |
virtual bool | support_weighted_data () const |
Whether the learning model/algorithm supports unequally weighted data. | |
virtual REAL | train () |
Train with preset data set and sample weight. | |
virtual Output | operator() (const Input &) const |
Bagging averages over all hypotheses.
Definition at line 20 of file bagging.h.
|
Definition at line 12 of file bagging.cpp. References Aggregating::set_max_models(). Referenced by Bagging::clone(), and Bagging::create(). |
|
|
|
Create a new object by replicating itself.
return new Derived(*this);
Implements Aggregating. Definition at line 27 of file bagging.h. References Bagging::Bagging(). |
|
Create a new object using the default constructor. The code for a derived class Derived is always return new Derived(); Implements Aggregating. Definition at line 26 of file bagging.h. References Bagging::Bagging(). |
|
Implements Object. |
|
Implements LearnModel. Definition at line 16 of file bagging.cpp. References LearnModel::_n_out, Aggregating::lm, Aggregating::n_in_agg, and Aggregating::size(). |
|
Whether the learning model/algorithm supports unequally weighted data.
Reimplemented from LearnModel. |
|
Train with preset data set and sample weight.
Implements LearnModel. Definition at line 33 of file bagging.cpp. References Aggregating::empty(), LearnModel::initialize(), Aggregating::lm, Aggregating::lm_base, Aggregating::max_n_model, Aggregating::n_in_agg, LearnModel::n_samples, LearnModel::ptd, LearnModel::ptw, LearnModel::set_train_data(), LearnModel::train(), and VERBOSE_OUTPUT. |