SHOGUN v0.9.0
公有成员
CKRR类参考

详细描述

在文件KRR.h55行定义。

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

所有成员的列表。

公有成员

 CKRR ()
 CKRR (float64_t tau, CKernel *k, CLabels *lab)
virtual ~CKRR ()
void set_tau (float64_t t)
virtual bool train (CFeatures *data=NULL)
virtual CLabelsclassify ()
virtual float64_t classify_example (int32_t num)
virtual CLabelsclassify (CFeatures *data)
virtual bool load (FILE *srcfile)
virtual bool save (FILE *dstfile)
virtual EClassifierType get_classifier_type ()
virtual const char * get_name () const

构造及析构函数文档

CKRR ( )

default constructor

在文件KRR.cpp21行定义。

CKRR ( float64_t  tau,
CKernel k,
CLabels lab 
)

constructor

参数:
tauregularization constant tau
kkernel
lablabels

在文件KRR.cpp28行定义。

~CKRR ( ) [virtual]

在文件KRR.cpp38行定义。


成员函数文档

CLabels * classify ( ) [virtual]

classify regression

返回:
resulting labels

重载CKernelMachine

在文件KRR.cpp97行定义。

virtual CLabels* classify ( CFeatures data) [virtual]

classify objects

参数:
data(test)data to be classified
返回:
classified labels

重载CKernelMachine

在文件KRR.h104行定义。

float64_t classify_example ( int32_t  num) [virtual]

classify one example

参数:
numwhich example to classify
返回:
result

重载CKernelMachine

在文件KRR.cpp127行定义。

virtual EClassifierType get_classifier_type ( ) [virtual]

get classifier type

返回:
classifier type KRR

重载CClassifier

在文件KRR.h127行定义。

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

重载CKernelMachine

在文件KRR.h133行定义。

bool load ( FILE *  srcfile) [virtual]

load regression from file

参数:
srcfilefile to load from
返回:
if loading was successful

重载CClassifier

在文件KRR.cpp83行定义。

bool save ( FILE *  dstfile) [virtual]

save regression to file

参数:
dstfilefile to save to
返回:
if saving was successful

重载CClassifier

在文件KRR.cpp90行定义。

void set_tau ( float64_t  t)

set regularization constant

参数:
tnew tau

在文件KRR.h74行定义。

bool train ( CFeatures data = NULL) [virtual]

train regression

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

重载CClassifier

在文件KRR.cpp43行定义。


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

SHOGUN Machine Learning Toolbox - Documentation