class SVMLin
公有成员 | |
CSVMLin () | |
CSVMLin (float64_t C, CDotFeatures *traindat, CLabels *trainlab) | |
virtual | ~CSVMLin () |
virtual EClassifierType | get_classifier_type () |
virtual bool | train (CFeatures *data=NULL) |
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 |
保护属性 | |
float64_t | C1 |
float64_t | C2 |
float64_t | epsilon |
bool | use_bias |
CSVMLin | ( | ) |
default constructor
在文件SVMLin.cpp第21行定义。
CSVMLin | ( | float64_t | C, |
CDotFeatures * | traindat, | ||
CLabels * | trainlab | ||
) |
constructor
C | constant C |
traindat | training features |
trainlab | labels for features |
在文件SVMLin.cpp第26行定义。
~CSVMLin | ( | ) | [virtual] |
在文件SVMLin.cpp第35行定义。
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
void set_bias_enabled | ( | bool | enable_bias ) |
bool train | ( | CFeatures * | data = NULL ) |
[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) |
重载CClassifier。
在文件SVMLin.cpp第39行定义。