SHOGUN v0.9.0
公有成员 | 保护属性
CGMNPSVM类参考

详细描述

Class GMNPSVM implements a one vs. rest MultiClass SVM.

It uses CGMNPLib for training (in true multiclass-SVM fashion).

在文件GMNPSVM.h第24行定义。

继承图,类CGMNPSVM
Inheritance graph
[图例]

所有成员的列表。

公有成员

 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 ( float64_t  C,
CKernel *  k,
CLabels *  lab 
)

constructor

参数:
Cconstant C
kkernel
lablabels

在文件GMNPSVM.cpp第29行定义。

~CGMNPSVM ( ) [virtual]

default destructor

在文件GMNPSVM.cpp第35行定义。


成员函数文档

float64_t * get_basealphas_ptr ( index_t *  y,
index_t *  x 
)

required for CMKLMulticlass constraint computation

参数:
yheight of basealphas
xwidth of basealphas
返回:
basealphas basealphas[k][j] is the alpha for class k and sample j which is untransformed compared to the alphas stored in CSVM* members

在文件GMNPSVM.cpp第182行定义。

virtual EClassifierType get_classifier_type ( ) [virtual]

get classifier type

返回:
classifier type GMNPSVM

重载CClassifier。

在文件GMNPSVM.h第57行定义。

virtual const char* get_name ( void  ) const [virtual]
返回:
object name

重载CSVM。

在文件GMNPSVM.h第71行定义。

bool train ( CFeatures *  data = NULL) [virtual]

train SVM

参数:
datatraining data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data)
返回:
whether training was successful

重载CClassifier。

在文件GMNPSVM.cpp第51行定义。


成员数据文档

float64_t* m_basealphas [protected]

required for CMKLMulticlass stores the untransformed alphas of this algorithm whereas CSVM* members stores a transformed version of it m_basealphas[k][j] is the alpha for class k and sample j

在文件GMNPSVM.h第80行定义。

index_t m_basealphas_x [protected]

在文件GMNPSVM.h第81行定义。

index_t m_basealphas_y [protected]

在文件GMNPSVM.h第81行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation