SHOGUN v0.9.0
公有成员 | 保护成员 | 保护属性
CSigmoidKernel类参考

详细描述

The standard Sigmoid kernel computed on dense real valued features.

Formally, it is computed as

\[ k({\bf x},{\bf x'})=\mbox{tanh}(\gamma {\bf x}\cdot{\bf x'}+c) \]

在文件SigmoidKernel.h29行定义。

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

所有成员的列表。

公有成员

 CSigmoidKernel ()
 CSigmoidKernel (int32_t size, float64_t gamma, float64_t coef0)
 CSigmoidKernel (CDotFeatures *l, CDotFeatures *r, int32_t size, float64_t gamma, float64_t coef0)
virtual ~CSigmoidKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual void cleanup ()
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

保护属性

float64_t gamma
float64_t coef0

构造及析构函数文档

default constructor

在文件SigmoidKernel.cpp17行定义。

CSigmoidKernel ( int32_t  size,
float64_t  gamma,
float64_t  coef0 
)

constructor

参数:
sizecache size
gammagamma
coef0coefficient 0

在文件SigmoidKernel.cpp22行定义。

CSigmoidKernel ( CDotFeatures l,
CDotFeatures r,
int32_t  size,
float64_t  gamma,
float64_t  coef0 
)

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side
sizecache size
gammagamma
coef0coefficient 0

在文件SigmoidKernel.cpp31行定义。

~CSigmoidKernel ( ) [virtual]

在文件SigmoidKernel.cpp43行定义。


成员函数文档

void cleanup ( ) [virtual]

clean up kernel

重载CKernel

在文件SigmoidKernel.cpp48行定义。

virtual float64_t compute ( int32_t  idx_a,
int32_t  idx_b 
) [protected, virtual]

compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object

参数:
idx_aindex a
idx_bindex b
返回:
computed kernel function at indices a,b

重载CDotKernel

在文件SigmoidKernel.h88行定义。

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type SIGMOID

实现了CDotKernel

在文件SigmoidKernel.h71行定义。

virtual const char* get_name ( void  ) const [virtual]

return the kernel's name

返回:
name Sigmoid

重载CDotKernel

在文件SigmoidKernel.h77行定义。

bool init ( CFeatures l,
CFeatures r 
) [virtual]

initialize kernel

参数:
lfeatures of left-hand side
rfeatures of right-hand side
返回:
if initializing was successful

重载CDotKernel

在文件SigmoidKernel.cpp52行定义。


成员数据文档

float64_t coef0 [protected]

coefficient 0

在文件SigmoidKernel.h100行定义。

float64_t gamma [protected]

gamma

在文件SigmoidKernel.h98行定义。


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

SHOGUN Machine Learning Toolbox - Documentation