公有成员 | 保护属性

CGMNPSVM类参考


详细描述

Class GMNPSVM implements a one vs. rest MultiClass SVM.

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

在文件GMNPSVM.h26行定义。

继承图,类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 ()
void getbasealphas (::std::vector< ::std::vector< float64_t > > &basealphas)
virtual const char * get_name () const

保护属性

::std::vector< ::std::vector
< float64_t > > 
m_basealphas

构造及析构函数文档

CGMNPSVM (  ) 

default constructor

在文件GMNPSVM.cpp23行定义。

CGMNPSVM ( float64_t  C,
CKernel k,
CLabels lab 
)

constructor

参数:
C constant C
k kernel
lab labels

在文件GMNPSVM.cpp28行定义。

~CGMNPSVM (  )  [virtual]

default destructor

在文件GMNPSVM.cpp33行定义。


成员函数文档

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

返回:
classifier type GMNPSVM

重载CClassifier

在文件GMNPSVM.h57行定义。

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

重载CSVM

在文件GMNPSVM.h68行定义。

void getbasealphas ( ::std::vector< ::std::vector< float64_t > > &  basealphas  ) 

required for CMKLMulticlass constraint computation

参数:
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.cpp163行定义。

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)
返回:
whether training was successful

重载CClassifier

在文件GMNPSVM.cpp37行定义。


成员数据文档

::std::vector< ::std::vector<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.h76行定义。


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

SHOGUN Machine Learning Toolbox - Documentation