CTensorProductPairKernel类参考


详细描述

Computes the Tensor Product Pair Kernel (TPPK).

Formally, it computes

\[ k_{\mbox{tppk}}(({\bf a},{\bf b}), ({\bf c},{\bf d}))= k({\bf a}, {\bf c})\cdot k({\bf b}, {\bf c}) + k({\bf a},{\bf d})\cdot k({\bf b}, {\bf c}) \]

It is defined on pairs of inputs and a subkernel $k$. The subkernel has to be given on initialization. The pairs are specified via indizes (ab)using 2-dimensional integer features.

Its feature space $\Phi_{\mbox{tppk}}$ is the tensor product of the feature spaces of the subkernel $k(.,.)$ on its input.

It is often used in bioinformatics, e.g., to predict protein-protein interactions.

在文件TensorProductPairKernel.h37行定义。

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

所有成员的列表。

公有成员

 CTensorProductPairKernel (int32_t size, CKernel *subkernel)
 CTensorProductPairKernel (CSimpleFeatures< int32_t > *l, CSimpleFeatures< int32_t > *r, CKernel *subkernel)
virtual ~CTensorProductPairKernel ()
virtual bool init (CFeatures *l, CFeatures *r)
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

保护属性

CKernelsubkernel

构造及析构函数文档

CTensorProductPairKernel ( int32_t  size,
CKernel subkernel 
)

constructor

参数:
size cache size
subkernel the subkernel

在文件TensorProductPairKernel.cpp19行定义。

CTensorProductPairKernel ( CSimpleFeatures< int32_t > *  l,
CSimpleFeatures< int32_t > *  r,
CKernel subkernel 
)

constructor

参数:
l features of left-hand side
r features of right-hand side
subkernel the subkernel

在文件TensorProductPairKernel.cpp25行定义。

~CTensorProductPairKernel (  )  [virtual]

在文件TensorProductPairKernel.cpp32行定义。


成员函数文档

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

实现了CKernel

在文件TensorProductPairKernel.cpp45行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are

返回:
kernel type TPPK

实现了CKernel

在文件TensorProductPairKernel.h69行定义。

virtual const char* get_name (  )  const [virtual]

return the kernel's name

返回:
name TPPK

实现了CSGObject

在文件TensorProductPairKernel.h75行定义。

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

initialize kernel

参数:
l features of left-hand side
r features of right-hand side
返回:
if initializing was successful

重载CSimpleKernel< int32_t >

在文件TensorProductPairKernel.cpp38行定义。


成员数据文档

CKernel* subkernel [protected]

the subkernel

在文件TensorProductPairKernel.h90行定义。


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

SHOGUN Machine Learning Toolbox - Documentation