SHOGUN
v1.1.0
|
Public Member Functions | |
CSVMLin () | |
CSVMLin (float64_t C, CDotFeatures *traindat, CLabels *trainlab) | |
virtual | ~CSVMLin () |
virtual EClassifierType | get_classifier_type () |
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 () |
virtual const char * | get_name () const |
Protected Member Functions | |
virtual bool | train_machine (CFeatures *data=NULL) |
Protected Attributes | |
float64_t | C1 |
float64_t | C2 |
float64_t | epsilon |
bool | use_bias |
CSVMLin | ( | ) |
default constructor
Definition at line 21 of file SVMLin.cpp.
CSVMLin | ( | float64_t | C, |
CDotFeatures * | traindat, | ||
CLabels * | trainlab | ||
) |
constructor
C | constant C |
traindat | training features |
trainlab | labels for features |
Definition at line 26 of file SVMLin.cpp.
~CSVMLin | ( | ) | [virtual] |
Definition at line 35 of file SVMLin.cpp.
bool get_bias_enabled | ( | ) |
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
float64_t get_epsilon | ( | ) |
virtual const char* get_name | ( | ) | const [virtual] |
void set_bias_enabled | ( | bool | enable_bias | ) |
void set_epsilon | ( | float64_t | eps | ) |
bool train_machine | ( | CFeatures * | data = NULL | ) | [protected, virtual] |
train 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 CMachine.
Definition at line 39 of file SVMLin.cpp.