CSVMLin类参考


详细描述

class SVMLin

在文件SVMLin.h22行定义。

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

所有成员的列表。

公有成员

 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 c1, float64_t c2)
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.cpp21行定义。

CSVMLin ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

参数:
C constant C
traindat training features
trainlab labels for features

在文件SVMLin.cpp26行定义。

~CSVMLin (  )  [virtual]

在文件SVMLin.cpp35行定义。


成员函数文档

bool get_bias_enabled (  ) 

get if bias is enabled

返回:
if bias is enabled

在文件SVMLin.h84行定义。

float64_t get_C1 (  ) 

get C1

返回:
C1

在文件SVMLin.h66行定义。

float64_t get_C2 (  ) 

get C2

返回:
C2

在文件SVMLin.h72行定义。

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

返回:
classifier type SVMLIN

重载CClassifier

在文件SVMLin.h43行定义。

float64_t get_epsilon (  ) 

get epsilon

返回:
epsilon

在文件SVMLin.h96行定义。

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

实现了CSGObject

在文件SVMLin.h99行定义。

void set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

参数:
enable_bias if bias shall be enabled

在文件SVMLin.h78行定义。

void set_C ( float64_t  c1,
float64_t  c2 
)

set C

参数:
c1 new C1
c2 new C2

在文件SVMLin.h60行定义。

void set_epsilon ( float64_t  eps  ) 

set epsilon

参数:
eps new epsilon

在文件SVMLin.h90行定义。

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

重载CClassifier

在文件SVMLin.cpp39行定义。


成员数据文档

float64_t C1 [protected]

C1

在文件SVMLin.h103行定义。

float64_t C2 [protected]

C2

在文件SVMLin.h105行定义。

float64_t epsilon [protected]

epsilon

在文件SVMLin.h107行定义。

bool use_bias [protected]

if bias is used

在文件SVMLin.h110行定义。


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

SHOGUN Machine Learning Toolbox - Documentation