SHOGUN v0.9.0
|
Class GMNPSVM implements a one vs. rest MultiClass SVM.
It uses CGMNPLib for training (in true multiclass-SVM fashion).
公有成员 | |
CGMNPSVM () | |
CGMNPSVM (float64_t C, CKernel *k, CLabels *lab) | |
virtual | ~CGMNPSVM () |
virtual bool | train (CFeatures *data=NULL) |
virtual EClassifierType | get_classifier_type () |
float64_t * | get_basealphas_ptr (index_t *y, index_t *x) |
virtual const char * | get_name () const |
保护属性 | |
float64_t * | m_basealphas |
index_t | m_basealphas_y |
index_t | m_basealphas_x |
CGMNPSVM | ( | ) |
default constructor
在文件GMNPSVM.cpp第23行定义。
~CGMNPSVM | ( | ) | [virtual] |
default destructor
在文件GMNPSVM.cpp第35行定义。
required for CMKLMulticlass constraint computation
y | height of basealphas |
x | width of basealphas |
在文件GMNPSVM.cpp第182行定义。
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
bool train | ( | CFeatures * | data = NULL | ) | [virtual] |
train SVM
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
重载CClassifier。
在文件GMNPSVM.cpp第51行定义。
float64_t* m_basealphas [protected] |
index_t m_basealphas_x [protected] |
index_t m_basealphas_y [protected] |