class to implement LibLinear
Definition at line 27 of file LibLinear.h.
Public Member Functions | |
CLibLinear (LIBLINEAR_LOSS loss) | |
CLibLinear (float64_t C, CDotFeatures *traindat, CLabels *trainlab) | |
virtual | ~CLibLinear () |
virtual bool | train () |
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::CLibLinear | ( | LIBLINEAR_LOSS | loss | ) |
CLibLinear::CLibLinear | ( | float64_t | C, | |
CDotFeatures * | traindat, | |||
CLabels * | trainlab | |||
) |
constructor
C | constant C | |
traindat | training features | |
trainlab | training labels |
Definition at line 28 of file LibLinear.cpp.
CLibLinear::~CLibLinear | ( | ) | [virtual] |
Definition at line 38 of file LibLinear.cpp.
bool CLibLinear::get_bias_enabled | ( | ) |
float64_t CLibLinear::get_C1 | ( | ) |
float64_t CLibLinear::get_C2 | ( | ) |
virtual EClassifierType CLibLinear::get_classifier_type | ( | ) | [virtual] |
get classifier type
Reimplemented from CClassifier.
Definition at line 55 of file LibLinear.h.
float64_t CLibLinear::get_epsilon | ( | ) |
virtual const char* CLibLinear::get_name | ( | ) | const [virtual] |
void CLibLinear::set_bias_enabled | ( | bool | enable_bias | ) |
set if bias shall be enabled
enable_bias | if bias shall be enabled |
Definition at line 92 of file LibLinear.h.
void CLibLinear::set_epsilon | ( | float64_t | eps | ) |
bool CLibLinear::train | ( | ) | [virtual] |
float64_t CLibLinear::C1 [protected] |
C1
Definition at line 105 of file LibLinear.h.
float64_t CLibLinear::C2 [protected] |
C2
Definition at line 107 of file LibLinear.h.
float64_t CLibLinear::epsilon [protected] |
epsilon
Definition at line 111 of file LibLinear.h.
LIBLINEAR_LOSS CLibLinear::loss [protected] |
loss
Definition at line 114 of file LibLinear.h.
bool CLibLinear::use_bias [protected] |
if bias shall be used
Definition at line 109 of file LibLinear.h.