Public Member Functions | Protected Attributes

CLPBoost Class Reference

Detailed Description

Definition at line 49 of file LPBoost.h.

Inheritance diagram for CLPBoost:
Inheritance graph

List of all members.

Public Member Functions

 CLPBoost ()
virtual ~CLPBoost ()
virtual bool train (CFeatures *data=NULL)
virtual EClassifierType get_classifier_type ()
bool init (int32_t num_vec)
void cleanup ()
virtual void set_features (CDotFeatures *feat)
void set_C (float64_t c_neg, float64_t c_pos)
float64_t get_C1 ()
float64_t get_C2 ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()
float64_t find_max_violator (int32_t &max_dim)
virtual const char * get_name () const

Protected Attributes

float64_t C1
float64_t C2
bool use_bias
float64_t epsilon
CDynamicArray< int32_t > * dim
int32_t num_sfeat
int32_t num_svec
TSparse< float64_t > * sfeat

Constructor & Destructor Documentation

CLPBoost (  ) 

Definition at line 25 of file LPBoost.cpp.

~CLPBoost (  )  [virtual]

Definition at line 36 of file LPBoost.cpp.

Member Function Documentation

void cleanup (  ) 

Definition at line 57 of file LPBoost.cpp.

float64_t find_max_violator ( int32_t &  max_dim  ) 

Definition at line 69 of file LPBoost.cpp.

bool get_bias_enabled (  ) 

Definition at line 98 of file LPBoost.h.

float64_t get_C1 (  ) 

Definition at line 94 of file LPBoost.h.

float64_t get_C2 (  ) 

Definition at line 95 of file LPBoost.h.

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

classifier type NONE

Reimplemented from CClassifier.

Definition at line 65 of file LPBoost.h.

float64_t get_epsilon (  ) 

Definition at line 101 of file LPBoost.h.

virtual const char* get_name ( void   )  const [virtual]
object name

Reimplemented from CLinearClassifier.

Definition at line 106 of file LPBoost.h.

bool init ( int32_t  num_vec  ) 

Definition at line 41 of file LPBoost.cpp.

void set_bias_enabled ( bool  enable_bias  ) 

Definition at line 97 of file LPBoost.h.

void set_C ( float64_t  c_neg,
float64_t  c_pos 

set C

c_neg new C constant for negatively labeled examples
c_pos new C constant for positively labeled examples

Definition at line 92 of file LPBoost.h.

void set_epsilon ( float64_t  eps  ) 

Definition at line 100 of file LPBoost.h.

virtual void set_features ( CDotFeatures feat  )  [virtual]

set features

feat features to set

Reimplemented from CLinearClassifier.

Definition at line 77 of file LPBoost.h.

bool train ( CFeatures data = NULL  )  [virtual]

train classifier

data training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data)
whether training was successful

Reimplemented from CClassifier.

Definition at line 104 of file LPBoost.cpp.

Member Data Documentation

float64_t C1 [protected]

Definition at line 109 of file LPBoost.h.

float64_t C2 [protected]

Definition at line 110 of file LPBoost.h.

CDynamicArray<int32_t>* dim [protected]

Definition at line 115 of file LPBoost.h.

float64_t epsilon [protected]

Definition at line 112 of file LPBoost.h.

int32_t num_sfeat [protected]

Definition at line 117 of file LPBoost.h.

int32_t num_svec [protected]

Definition at line 118 of file LPBoost.h.

TSparse<float64_t>* sfeat [protected]

Definition at line 119 of file LPBoost.h.

float64_t* u [protected]

Definition at line 114 of file LPBoost.h.

bool use_bias [protected]

Definition at line 111 of file LPBoost.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation