CLibLinear类参考


详细描述

class to implement LibLinear

在文件LibLinear.h29行定义。

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

所有成员的列表。

公有成员

 CLibLinear (LIBLINEAR_LOSS loss)
 CLibLinear (float64_t C, CDotFeatures *traindat, CLabels *trainlab)
virtual ~CLibLinear ()
virtual bool train (CFeatures *data=NULL)
virtual EClassifierType get_classifier_type ()
void set_C (float64_t c1, float64_t c2)
float64_t get_C1 ()
float64_t get_C2 ()
void set_epsilon (float64_t eps)
float64_t get_epsilon ()
void set_bias_enabled (bool enable_bias)
bool get_bias_enabled ()
virtual const char * get_name () const

保护属性

float64_t C1
float64_t C2
bool use_bias
float64_t epsilon
LIBLINEAR_LOSS loss

构造及析构函数文档

CLibLinear ( LIBLINEAR_LOSS  loss  ) 

constructor

参数:
loss loss

在文件LibLinear.cpp21行定义。

CLibLinear ( float64_t  C,
CDotFeatures traindat,
CLabels trainlab 
)

constructor

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

在文件LibLinear.cpp30行定义。

~CLibLinear (  )  [virtual]

在文件LibLinear.cpp40行定义。


成员函数文档

bool get_bias_enabled (  ) 

check if bias is enabled

返回:
if bias is enabled

在文件LibLinear.h107行定义。

float64_t get_C1 (  ) 

get C1

返回:
C1

在文件LibLinear.h77行定义。

float64_t get_C2 (  ) 

get C2

返回:
C2

在文件LibLinear.h83行定义。

virtual EClassifierType get_classifier_type (  )  [virtual]

get classifier type

返回:
the classifier type

重载CClassifier

在文件LibLinear.h64行定义。

float64_t get_epsilon (  ) 

get epsilon

返回:
epsilon

在文件LibLinear.h95行定义。

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

实现了CSGObject

在文件LibLinear.h110行定义。

void set_bias_enabled ( bool  enable_bias  ) 

set if bias shall be enabled

参数:
enable_bias if bias shall be enabled

在文件LibLinear.h101行定义。

void set_C ( float64_t  c1,
float64_t  c2 
)

set C

参数:
c1 C1
c2 C2

在文件LibLinear.h71行定义。

void set_epsilon ( float64_t  eps  ) 

set epsilon

参数:
eps new epsilon

在文件LibLinear.h89行定义。

bool train ( CFeatures data = NULL  )  [virtual]

train linear 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

在文件LibLinear.cpp44行定义。


成员数据文档

float64_t C1 [protected]

C1

在文件LibLinear.h114行定义。

float64_t C2 [protected]

C2

在文件LibLinear.h116行定义。

float64_t epsilon [protected]

epsilon

在文件LibLinear.h120行定义。

LIBLINEAR_LOSS loss [protected]

loss

在文件LibLinear.h123行定义。

bool use_bias [protected]

if bias shall be used

在文件LibLinear.h118行定义。


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

SHOGUN Machine Learning Toolbox - Documentation