class to implement LibLinear
Definition at line 29 of file LibLinear.h.
Public Member Functions | |
CLibLinear (LIBLINEAR_LOSS loss) | |
CLibLinear (float64_t C, CDotFeatures *traindat, CLabels *trainlab) | |
virtual | ~CLibLinear () |
virtual bool | train (CFeatures *data=NULL) |
virtual EClassifierType | get_classifier_type () |
void | set_C (float64_t c1, float64_t c2) |
float64_t | get_C1 () |
float64_t | get_C2 () |
void | set_epsilon (float64_t eps) |
float64_t | get_epsilon () |
void | set_bias_enabled (bool enable_bias) |
bool | get_bias_enabled () |
virtual const char * | get_name () const |
Protected Attributes | |
float64_t | C1 |
float64_t | C2 |
bool | use_bias |
float64_t | epsilon |
LIBLINEAR_LOSS | loss |
CLibLinear | ( | LIBLINEAR_LOSS | loss | ) |
CLibLinear | ( | float64_t | C, | |
CDotFeatures * | traindat, | |||
CLabels * | trainlab | |||
) |
constructor
C | constant C | |
traindat | training features | |
trainlab | training labels |
Definition at line 30 of file LibLinear.cpp.
~CLibLinear | ( | ) | [virtual] |
Definition at line 40 of file LibLinear.cpp.
bool get_bias_enabled | ( | ) |
float64_t get_C1 | ( | ) |
float64_t get_C2 | ( | ) |
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
get classifier type
Reimplemented from CClassifier.
Definition at line 64 of file LibLinear.h.
float64_t get_epsilon | ( | ) |
virtual const char* get_name | ( | ) | const [virtual] |
void set_bias_enabled | ( | bool | enable_bias | ) |
set if bias shall be enabled
enable_bias | if bias shall be enabled |
Definition at line 101 of file LibLinear.h.
void set_epsilon | ( | float64_t | eps | ) |
bool train | ( | CFeatures * | data = NULL |
) | [virtual] |
train linear SVM classifier
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
Reimplemented from CClassifier.
Definition at line 44 of file LibLinear.cpp.
C1
Definition at line 114 of file LibLinear.h.
C2
Definition at line 116 of file LibLinear.h.
epsilon
Definition at line 120 of file LibLinear.h.
LIBLINEAR_LOSS loss [protected] |
loss
Definition at line 123 of file LibLinear.h.
bool use_bias [protected] |
if bias shall be used
Definition at line 118 of file LibLinear.h.