CGaussianShiftKernel类参考


详细描述

An experimental kernel inspired by the WeightedDegreePositionStringKernel and the Gaussian kernel.

It is computed as

\[ k({\bf x},{\bf x'})= \exp(-\frac{||{\bf x}-{\bf x'}||^2}{\tau}) + \sum_{s=1}^{S_{\mathrm{max}}/S_{\mathrm{step}}} \frac{1}{2s} \exp(-\frac{||{\bf x}_{[1:|{\bf x}|-sS_{\mathrm{step}}]}-{\bf x'}_{[sS_{\mathrm{step}}:|{\bf x}|]}||^2}{\tau}) + \sum_{s=1}^{S_{max}/S_{step}} \frac{1}{2s} \exp(-\frac{||{\bf x}_{[sS_{\mathrm{step}}:|{\bf x}|]}-{\bf x'}_{[1:|{\bf x}|-sS_{\mathrm{step}}]}||^2}{\tau}) + \]

where $\tau$ is the kernel width. The idea is to shift the dimensions of the input vectors against eachother. $S_{\mathrm{step}}$ is the step size (parameter shift_step) of the shifts and $S_{\mathrm{max}}$ (parameter max_shift) is the maximal shift.

在文件GaussianShiftKernel.h36行定义。

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

所有成员的列表。

公有成员

 CGaussianShiftKernel (int32_t size, float64_t width, int32_t max_shift, int32_t shift_step)
 CGaussianShiftKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, float64_t width, int32_t max_shift, int32_t shift_step, int32_t size=10)
virtual ~CGaussianShiftKernel ()
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 max_shift
int32_t shift_step

构造及析构函数文档

CGaussianShiftKernel ( int32_t  size,
float64_t  width,
int32_t  max_shift,
int32_t  shift_step 
)

constructor

参数:
size cache size
width width
max_shift maximum shift
shift_step shift step

在文件GaussianShiftKernel.cpp19行定义。

CGaussianShiftKernel ( CSimpleFeatures< float64_t > *  l,
CSimpleFeatures< float64_t > *  r,
float64_t  width,
int32_t  max_shift,
int32_t  shift_step,
int32_t  size = 10 
)

constructor

参数:
l features of left-hand side
r features of right-hand side
width width
max_shift maximum shift
shift_step shift step
size cache size

在文件GaussianShiftKernel.cpp25行定义。

~CGaussianShiftKernel (  )  [virtual]

在文件GaussianShiftKernel.cpp33行定义。


成员函数文档

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_a index a
idx_b index b
返回:
computed kernel function at indices a,b

重载CGaussianKernel

在文件GaussianShiftKernel.cpp37行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type GAUSSIANSHIFT

重载CGaussianKernel

在文件GaussianShiftKernel.h70行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name GaussianShift

重载CGaussianKernel

在文件GaussianShiftKernel.h76行定义。


成员数据文档

int32_t max_shift [protected]

maximum shift

在文件GaussianShiftKernel.h91行定义。

int32_t shift_step [protected]

shift step

在文件GaussianShiftKernel.h93行定义。


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

SHOGUN Machine Learning Toolbox - Documentation