#include <adaboost.h>
Collaboration diagram for adaboost:
Public Member Functions | |
adaboost (int nl) | |
adaboost (const string &file) | |
~adaboost () | |
int | n_rules () |
int | get_nlabels () |
string | get_label (int lb) |
string | default_class () |
void | classify (input *i, double pred[]) |
void | pcl_ini_pointer () |
int | pcl_advance_pointer (int steps) |
void | pcl_classify (input *i, double *pred, int nrules) |
void | learn (dataset *ds, int nrounds, int maxdepth) |
void | set_output (ofstream &os) |
void | read_from_stream (ifstream &in) |
void | read_from_file (char *file) |
Static Public Member Functions | |
static void | set_verbose (int level) |
static void | set_epsilon (double eps) |
static void | set_initialize_weights (bool b) |
Private Member Functions | |
int | stopping_criterion (int nrounds) |
void | initialize_weights (dataset *ds) |
void | update_weights (mlABTree *wr, double Z, dataset *ds) |
void | add_weak_rule (mlABTree *wr) |
adaboost (const adaboost &old_bab) | |
Private Attributes | |
wr_holder * | first |
wr_holder * | last |
wr_holder * | pcl_pointer |
int | nrules |
int | nlabels |
vector< string > | labels |
string | label_others |
ofstream * | out |
struct { | |
int n_rounds | |
int max_depth | |
} | SC |
Static Private Attributes | |
static double | epsilon |
static int | verbose |
static bool | option_initialize_weights |
Classes | |
struct | wr_holder |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|