The well known Gaussian kernel (swiss army knife for SVMs) on sparse real valued features.
It is computed as
where
is the kernel width.
在文件SparseGaussianKernel.h第32行定义。

公有成员 | |
| CSparseGaussianKernel (int32_t size, float64_t width) | |
| CSparseGaussianKernel (CSparseFeatures< float64_t > *l, CSparseFeatures< float64_t > *r, float64_t width) | |
| virtual | ~CSparseGaussianKernel () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual void | cleanup () |
| virtual EKernelType | get_kernel_type () |
| virtual EFeatureType | get_feature_type () |
| virtual const char * | get_name () const |
保护成员 | |
| virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
保护属性 | |
| float64_t | width |
| float64_t * | sq_lhs |
| float64_t * | sq_rhs |
| CSparseGaussianKernel | ( | int32_t | size, | |
| float64_t | width | |||
| ) |
| CSparseGaussianKernel | ( | CSparseFeatures< float64_t > * | l, | |
| CSparseFeatures< float64_t > * | r, | |||
| float64_t | width | |||
| ) |
constructor
| l | features of left-hand side | |
| r | features of right-hand side | |
| width | width |
在文件SparseGaussianKernel.cpp第24行定义。
| ~CSparseGaussianKernel | ( | ) | [virtual] |
在文件SparseGaussianKernel.cpp第31行定义。
| void cleanup | ( | ) | [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。
在文件SparseGaussianKernel.cpp第68行定义。
| virtual EFeatureType get_feature_type | ( | ) | [virtual] |
| virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
实现了CKernel。
在文件SparseGaussianKernel.h第69行定义。
| virtual const char* get_name | ( | ) | const [virtual] |
initialize kernel
| l | features of left-hand side | |
| r | features of right-hand side |
free sq_{r,l}hs first
在文件SparseGaussianKernel.cpp第36行定义。
squared left-hand side
在文件SparseGaussianKernel.h第98行定义。
squared right-hand side
在文件SparseGaussianKernel.h第100行定义。
width
在文件SparseGaussianKernel.h第96行定义。