SHOGUN v0.9.0
|
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)
在文件DotKernel.h第29行定义。
公有成员 | |
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) |
CDotKernel | ( | ) |
default constructor
在文件DotKernel.h第35行定义。
CDotKernel | ( | int32_t | cachesize | ) |
CDotKernel | ( | CFeatures * | l, |
CFeatures * | r | ||
) |
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_a | index a |
idx_b | index b |
实现了CKernel。
被CAUCKernel、CChi2Kernel、CGaussianKernel、CGaussianShiftKernel、CGaussianShortRealKernel、CHistogramIntersectionKernel、CPolyKernel、CPyramidChi2、CSigmoidKernel、CTensorProductPairKernel及CWeightedDegreeRBFKernel重载。
在文件DotKernel.h第121行定义。
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
实现了CKernel。
被CAUCKernel、CChi2Kernel、CTensorProductPairKernel及CWeightedDegreeRBFKernel重载。
在文件DotKernel.h第86行定义。
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
实现了CKernel。
被CAUCKernel、CChi2Kernel、CTensorProductPairKernel及CWeightedDegreeRBFKernel重载。
在文件DotKernel.h第94行定义。
virtual EKernelType get_kernel_type | ( | ) | [pure virtual] |
return what type of kernel we are, e.g. Linear,Polynomial, Gaussian,...
abstract base method
实现了CKernel。
在CAUCKernel、CChi2Kernel、CGaussianKernel、CGaussianShiftKernel、CGaussianShortRealKernel、CHistogramIntersectionKernel、CLinearKernel、CPolyKernel、CPyramidChi2、CSigmoidKernel、CTensorProductPairKernel及CWeightedDegreeRBFKernel内被实现。
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'.
实现了CSGObject。
被CAUCKernel、CChi2Kernel、CGaussianKernel、CGaussianShiftKernel、CGaussianShortRealKernel、CHistogramIntersectionKernel、CLinearKernel、CPolyKernel、CPyramidChi2、CSigmoidKernel、CTensorProductPairKernel及CWeightedDegreeRBFKernel重载。
在文件DotKernel.h第101行定义。
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 (!)
l | features for left-hand side |
r | features for right-hand side |
重载CKernel。
被CAUCKernel、CChi2Kernel、CGaussianKernel、CGaussianShortRealKernel、CHistogramIntersectionKernel、CLinearKernel、CPolyKernel、CPyramidChi2、CSigmoidKernel、CTensorProductPairKernel及CWeightedDegreeRBFKernel重载。
在文件DotKernel.h第63行定义。