Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

adaboost Class Reference

#include <adaboost.h>

Collaboration diagram for adaboost:

Collaboration graph
[legend]
List of all members.

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_holderfirst
wr_holderlast
wr_holderpcl_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

Constructor & Destructor Documentation

adaboost::adaboost const adaboost old_bab  )  [private]
 

adaboost::adaboost int  nl  ) 
 

adaboost::adaboost const string &  file  ) 
 

adaboost::~adaboost  ) 
 


Member Function Documentation

void adaboost::add_weak_rule mlABTree wr  )  [private]
 

void adaboost::classify input i,
double  pred[]
 

string adaboost::default_class  )  [inline]
 

string adaboost::get_label int  lb  )  [inline]
 

int adaboost::get_nlabels  )  [inline]
 

void adaboost::initialize_weights dataset ds  )  [private]
 

void adaboost::learn dataset ds,
int  nrounds,
int  maxdepth
 

int adaboost::n_rules  ) 
 

int adaboost::pcl_advance_pointer int  steps  ) 
 

void adaboost::pcl_classify input i,
double *  pred,
int  nrules
 

void adaboost::pcl_ini_pointer  ) 
 

void adaboost::read_from_file char *  file  ) 
 

void adaboost::read_from_stream ifstream &  in  ) 
 

static void adaboost::set_epsilon double  eps  )  [static]
 

static void adaboost::set_initialize_weights bool  b  )  [static]
 

void adaboost::set_output ofstream &  os  ) 
 

static void adaboost::set_verbose int  level  )  [static]
 

int adaboost::stopping_criterion int  nrounds  )  [private]
 

void adaboost::update_weights mlABTree wr,
double  Z,
dataset ds
[private]
 


Member Data Documentation

double adaboost::epsilon [static, private]
 

wr_holder* adaboost::first [private]
 

string adaboost::label_others [private]
 

vector<string> adaboost::labels [private]
 

wr_holder* adaboost::last [private]
 

int adaboost::max_depth [private]
 

int adaboost::n_rounds [private]
 

int adaboost::nlabels [private]
 

int adaboost::nrules [private]
 

bool adaboost::option_initialize_weights [static, private]
 

ofstream* adaboost::out [private]
 

wr_holder* adaboost::pcl_pointer [private]
 

struct { ... } adaboost::SC [private]
 

int adaboost::verbose [static, private]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 26 12:57:31 2006 for FreeLing by  doxygen 1.4.4