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

详细描述

Computes the standard polynomial kernel on CDotFeatures.

Formally, it computes

\[ k({\bf x},{\bf x'})= ({\bf x}\cdot {\bf x'}+c)^d \]

Note that additional normalisation is applied, i.e.

\[ k'({\bf x}, {\bf x'})=\frac{k({\bf x}, {\bf x'})}{\sqrt{k({\bf x}, {\bf x})k({\bf x'}, {\bf x'})}} \]

在文件PolyKernel.h36行定义。

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

所有成员的列表。

公有成员

 CPolyKernel (void)
 CPolyKernel (CDotFeatures *l, CDotFeatures *r, int32_t d, bool inhom, int32_t size=10)
 CPolyKernel (int32_t size, int32_t degree, bool inhomogene=true)
virtual ~CPolyKernel ()
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)

保护属性

int32_t degree
bool inhomogene

构造及析构函数文档

CPolyKernel ( void  )

default constructor

在文件PolyKernel.cpp29行定义。

CPolyKernel ( CDotFeatures l,
CDotFeatures r,
int32_t  d,
bool  inhom,
int32_t  size = 10 
)

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side
ddegree
inhomis inhomogeneous
sizecache size

在文件PolyKernel.cpp45行定义。

CPolyKernel ( int32_t  size,
int32_t  degree,
bool  inhomogene = true 
)

constructor

参数:
sizecache size
degreedegree
inhomogeneis inhomogeneous

在文件PolyKernel.cpp37行定义。

~CPolyKernel ( ) [virtual]

在文件PolyKernel.cpp55行定义。


成员函数文档

void cleanup ( ) [virtual]

clean up kernel

重载CKernel

在文件PolyKernel.cpp66行定义。

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

在文件PolyKernel.cpp71行定义。

virtual EKernelType get_kernel_type ( ) [virtual]

return what type of kernel we are

返回:
kernel type POLY

实现了CDotKernel

在文件PolyKernel.h80行定义。

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

return the kernel's name

返回:
name Poly

重载CDotKernel

在文件PolyKernel.h86行定义。

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

initialize kernel

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

重载CDotKernel

在文件PolyKernel.cpp60行定义。


成员数据文档

int32_t degree [protected]

degree

在文件PolyKernel.h101行定义。

bool inhomogene [protected]

if kernel is inhomogeneous

在文件PolyKernel.h103行定义。


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

SHOGUN Machine Learning Toolbox - Documentation