SHOGUN v0.9.0
公有成员 | 保护成员
CDotKernel类参考

详细描述

Template class DotKernel is the base class for kernels working on DotFeatures.

CDotFeatures are features supporting operations like dot product, dot product with a dense vector and addition to a dense vector. Therefore several dot product based kernels derive from this class (cf., e.g., CLinearKernel)

参见:
CDotFeatures

在文件DotKernel.h29行定义。

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

所有成员的列表。

公有成员

 CDotKernel ()
 CDotKernel (int32_t cachesize)
 CDotKernel (CFeatures *l, CFeatures *r)
virtual bool init (CFeatures *l, CFeatures *r)
virtual EFeatureClass get_feature_class ()
virtual EFeatureType get_feature_type ()
virtual const char * get_name (void) const
virtual EKernelType get_kernel_type ()=0

保护成员

virtual float64_t compute (int32_t idx_a, int32_t idx_b)

构造及析构函数文档

default constructor

在文件DotKernel.h35行定义。

CDotKernel ( int32_t  cachesize)

constructor

参数:
cachesizecache size

在文件DotKernel.h41行定义。

CDotKernel ( CFeatures l,
CFeatures r 
)

constructor

参数:
lfeatures of left-hand side
rfeatures of right-hand side

在文件DotKernel.h48行定义。


成员函数文档

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

实现了CKernel

CAUCKernelCChi2KernelCGaussianKernelCGaussianShiftKernelCGaussianShortRealKernelCHistogramIntersectionKernelCPolyKernelCPyramidChi2CSigmoidKernelCTensorProductPairKernelCWeightedDegreeRBFKernel重载。

在文件DotKernel.h121行定义。

virtual EFeatureClass get_feature_class ( ) [virtual]

return feature class the kernel can deal with

dot kernel returns unknown since features can be based on anything

返回:
feature class ANY

实现了CKernel

CAUCKernelCChi2KernelCTensorProductPairKernelCWeightedDegreeRBFKernel重载。

在文件DotKernel.h86行定义。

virtual EFeatureType get_feature_type ( ) [virtual]

return feature type the kernel can deal with

dot kernel returns unknown since features can be based on anything

返回:
ANY feature type

实现了CKernel

CAUCKernelCChi2KernelCTensorProductPairKernelCWeightedDegreeRBFKernel重载。

在文件DotKernel.h94行定义。

virtual EKernelType get_kernel_type ( ) [pure virtual]

return what type of kernel we are, e.g. Linear,Polynomial, Gaussian,...

abstract base method

返回:
kernel type

实现了CKernel

CAUCKernelCChi2KernelCGaussianKernelCGaussianShiftKernelCGaussianShortRealKernelCHistogramIntersectionKernelCLinearKernelCPolyKernelCPyramidChi2CSigmoidKernelCTensorProductPairKernelCWeightedDegreeRBFKernel内被实现。

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

Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.

返回:
name of the SGSerializable

实现了CSGObject

CAUCKernelCChi2KernelCGaussianKernelCGaussianShiftKernelCGaussianShortRealKernelCHistogramIntersectionKernelCLinearKernelCPolyKernelCPyramidChi2CSigmoidKernelCTensorProductPairKernelCWeightedDegreeRBFKernel重载。

在文件DotKernel.h101行定义。

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

initialize kernel e.g. setup lhs/rhs of kernel, precompute normalization constants etc. make sure to check that your kernel can deal with the supplied features (!)

参数:
lfeatures for left-hand side
rfeatures for right-hand side
返回:
if init was successful

重载CKernel

CAUCKernelCChi2KernelCGaussianKernelCGaussianShortRealKernelCHistogramIntersectionKernelCLinearKernelCPolyKernelCPyramidChi2CSigmoidKernelCTensorProductPairKernelCWeightedDegreeRBFKernel重载。

在文件DotKernel.h63行定义。


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

SHOGUN Machine Learning Toolbox - Documentation