Detailed Description
Class LPBoost trains a linear classifier called Linear Programming Machine, i.e. a SVM using a
norm regularizer.
It solves the following optimization problem using Boosting on the input features:
Note that currently CPLEX is required to solve this problem. This implementation is faster than solving the linear program directly in CPLEX (as was done in CLPM).
- See also:
- CLPM
Definition at line 48 of file LPBoost.h.
List of all members.
Constructor & Destructor Documentation
Member Function Documentation
float64_t find_max_violator |
( |
int32_t & |
max_dim |
) |
|
bool get_bias_enabled |
( |
|
) |
|
virtual const char* get_name |
( |
void |
|
) |
const [virtual] |
- Returns:
- object name
Definition at line 95 of file LPBoost.h.
bool init |
( |
int32_t |
num_vec |
) |
|
void set_bias_enabled |
( |
bool |
enable_bias |
) |
|
set C
- Parameters:
-
| c_neg | new C constant for negatively labeled examples |
| c_pos | new C constant for positively labeled examples |
Definition at line 81 of file LPBoost.h.
set features
- Parameters:
-
Definition at line 66 of file LPBoost.h.
bool train_machine |
( |
CFeatures * |
data = NULL |
) |
[protected, virtual] |
train classifier
- Parameters:
-
| data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
- Returns:
- whether training was successful
Definition at line 104 of file LPBoost.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: