Public Member Functions
clsfy_adaboost_trainer Class Reference

A class for some purpose. More...

#include <clsfy_adaboost_trainer.h>

List of all members.

Public Member Functions

 clsfy_adaboost_trainer ()
 Dflt ctor.
virtual ~clsfy_adaboost_trainer ()
 Destructor.
void build_strong_classifier (clsfy_simple_adaboost &strong_classifier, int max_n_clfrs, clsfy_builder_1d &builder, mbl_data_wrapper< vnl_vector< double > > &egs0, mbl_data_wrapper< vnl_vector< double > > &egs1)
 Build classifier composed of 1d classifiers working on individual vector elements.
void clsfy_update_weights_weak (vnl_vector< double > &wts, const vnl_vector< double > &data, clsfy_classifier_1d &classifier, int class_number, double beta)
 Correctly classified examples have weights scaled by beta.
void clsfy_get_elements (vnl_vector< double > &v, mbl_data_wrapper< vnl_vector< double > > &data, int j)
 Extracts the j-th element of each vector in data and puts into v.
short version_no () const
 Version number for I/O.
vcl_string is_a () const
 Name of the class.
virtual bool is_class (vcl_string const &s) const
 Name of the class.
void print_summary (vcl_ostream &os) const
 Print class to os.
void b_write (vsl_b_ostream &bfs) const
 Save class to binary file stream.
void b_read (vsl_b_istream &bfs)
 Load class from binary file stream.

Detailed Description

A class for some purpose.

The purpose of this class is to prove that 1+1=3.

Definition at line 30 of file clsfy_adaboost_trainer.h.


Constructor & Destructor Documentation

clsfy_adaboost_trainer::clsfy_adaboost_trainer ( )

Dflt ctor.

Definition at line 29 of file clsfy_adaboost_trainer.cxx.

clsfy_adaboost_trainer::~clsfy_adaboost_trainer ( ) [virtual]

Destructor.

Definition at line 35 of file clsfy_adaboost_trainer.cxx.


Member Function Documentation

void clsfy_adaboost_trainer::b_read ( vsl_b_istream bfs)

Load class from binary file stream.

Definition at line 253 of file clsfy_adaboost_trainer.cxx.

void clsfy_adaboost_trainer::b_write ( vsl_b_ostream bfs) const

Save class to binary file stream.

Definition at line 243 of file clsfy_adaboost_trainer.cxx.

void clsfy_adaboost_trainer::build_strong_classifier ( clsfy_simple_adaboost strong_classifier,
int  max_n_clfrs,
clsfy_builder_1d builder,
mbl_data_wrapper< vnl_vector< double > > &  egs0,
mbl_data_wrapper< vnl_vector< double > > &  egs1 
)

Build classifier composed of 1d classifiers working on individual vector elements.

Builds an n-component classifier, each component of which is a 1D classifier working on a single element of the input vector.

Builds an n-component classifier, each component of which is a 1D classifier working on a single element of the input vector. here egs0 are -ve examples and egs1 are +ve examples

Definition at line 77 of file clsfy_adaboost_trainer.cxx.

void clsfy_adaboost_trainer::clsfy_get_elements ( vnl_vector< double > &  v,
mbl_data_wrapper< vnl_vector< double > > &  data,
int  j 
)

Extracts the j-th element of each vector in data and puts into v.

Definition at line 41 of file clsfy_adaboost_trainer.cxx.

void clsfy_adaboost_trainer::clsfy_update_weights_weak ( vnl_vector< double > &  wts,
const vnl_vector< double > &  data,
clsfy_classifier_1d classifier,
int  class_number,
double  beta 
)

Correctly classified examples have weights scaled by beta.

Definition at line 58 of file clsfy_adaboost_trainer.cxx.

vcl_string clsfy_adaboost_trainer::is_a ( ) const

Name of the class.

Definition at line 189 of file clsfy_adaboost_trainer.cxx.

bool clsfy_adaboost_trainer::is_class ( vcl_string const &  s) const [virtual]

Name of the class.

Definition at line 194 of file clsfy_adaboost_trainer.cxx.

void clsfy_adaboost_trainer::print_summary ( vcl_ostream &  os) const

Print class to os.

Definition at line 234 of file clsfy_adaboost_trainer.cxx.

short clsfy_adaboost_trainer::version_no ( ) const

Version number for I/O.

Definition at line 182 of file clsfy_adaboost_trainer.cxx.


The documentation for this class was generated from the following files: