SHOGUN v0.9.0
公有成员 | 保护成员
CSVMSGD类参考

详细描述

class SVMSGD

在文件SVMSGD.h33行定义。

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

所有成员的列表。

公有成员

 CSVMSGD ()
 CSVMSGD (float64_t C)
 CSVMSGD (float64_t C, CDotFeatures *traindat, CLabels *trainlab)
virtual ~CSVMSGD ()
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_epochs (int32_t e)
int32_t get_epochs ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
void set_regularized_bias_enabled (bool enable_bias)
bool get_regularized_bias_enabled ()
virtual const char * get_name () const

保护成员

void calibrate ()

构造及析构函数文档

CSVMSGD ( )

default constructor

在文件SVMSGD.cpp105行定义。

constructor

参数:
Cconstant C

在文件SVMSGD.cpp111行定义。

CSVMSGD ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

参数:
Cconstant C
traindattraining features
trainlablabels for training features

在文件SVMSGD.cpp120行定义。

~CSVMSGD ( ) [virtual]

在文件SVMSGD.cpp131行定义。


成员函数文档

void calibrate ( ) [protected]

calibrate

在文件SVMSGD.cpp223行定义。

bool get_bias_enabled ( )

check if bias is enabled

返回:
if bias is enabled

在文件SVMSGD.h115行定义。

float64_t get_C1 ( )

get C1

返回:
C1

在文件SVMSGD.h85行定义。

float64_t get_C2 ( )

get C2

返回:
C2

在文件SVMSGD.h91行定义。

virtual EClassifierType get_classifier_type ( ) [virtual]

get classifier type

返回:
classifier type SVMOCAS

重载CClassifier

在文件SVMSGD.h61行定义。

int32_t get_epochs ( )

get epochs

返回:
the number of training epochs

在文件SVMSGD.h103行定义。

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

重载CLinearClassifier

在文件SVMSGD.h130行定义。

bool get_regularized_bias_enabled ( )

check if regularized bias is enabled

返回:
if regularized bias is enabled

在文件SVMSGD.h127行定义。

void set_bias_enabled ( bool  enable_bias)

set if bias shall be enabled

参数:
enable_biasif bias shall be enabled

在文件SVMSGD.h109行定义。

void set_C ( float64_t  c_neg,
float64_t  c_pos 
)

set C

参数:
c_negnew C constant for negatively labeled examples
c_posnew C constant for positively labeled examples

在文件SVMSGD.h79行定义。

void set_epochs ( int32_t  e)

set epochs

参数:
enew number of training epochs

在文件SVMSGD.h97行定义。

void set_regularized_bias_enabled ( bool  enable_bias)

set if regularized bias shall be enabled

参数:
enable_biasif regularized bias shall be enabled

在文件SVMSGD.h121行定义。

bool train ( CFeatures data = NULL) [virtual]

train classifier

参数:
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

在文件SVMSGD.cpp135行定义。


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

SHOGUN Machine Learning Toolbox - Documentation