SHOGUN v0.9.0
|
Computes the Tensor Product Pair Kernel (TPPK).
Formally, it computes
It is defined on pairs of inputs and a subkernel . The subkernel has to be given on initialization. The pairs are specified via indizes (ab)using 2-dimensional integer features.
Its feature space is the tensor product of the feature spaces of the subkernel
on its input.
It is often used in bioinformatics, e.g., to predict protein-protein interactions.
在文件TensorProductPairKernel.h第37行定义。
公有成员 | |
CTensorProductPairKernel (void) | |
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 EFeatureClass | get_feature_class () |
virtual EFeatureType | get_feature_type () |
保护成员 | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
保护属性 | |
CKernel * | subkernel |
CTensorProductPairKernel | ( | void | ) |
default constructor
在文件TensorProductPairKernel.cpp第19行定义。
CTensorProductPairKernel | ( | int32_t | size, |
CKernel * | subkernel | ||
) |
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.cpp第32行定义。
~CTensorProductPairKernel | ( | ) | [virtual] |
在文件TensorProductPairKernel.cpp第39行定义。
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 |
重载CDotKernel。
在文件TensorProductPairKernel.cpp第52行定义。
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
重载CDotKernel。
在文件TensorProductPairKernel.h第84行定义。
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
重载CDotKernel。
在文件TensorProductPairKernel.h第90行定义。
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
实现了CDotKernel。
在文件TensorProductPairKernel.h第72行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
重载CDotKernel。
在文件TensorProductPairKernel.cpp第45行定义。
the subkernel
在文件TensorProductPairKernel.h第105行定义。