|
SHOGUN v0.9.0
|
The well known Gaussian kernel (swiss army knife for SVMs) computed on CDotFeatures.
It is computed as
where
is the kernel width.
在文件GaussianKernel.h第33行定义。

公有成员 | |
| CGaussianKernel () | |
| CGaussianKernel (int32_t size, float64_t width) | |
| CGaussianKernel (CDotFeatures *l, CDotFeatures *r, float64_t width, int32_t size=10) | |
| virtual | ~CGaussianKernel () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual void | cleanup () |
| virtual EKernelType | get_kernel_type () |
| virtual const char * | get_name () const |
| virtual float64_t | get_width (void) const |
保护成员 | |
| virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
| virtual void | load_serializable_post (void) throw (ShogunException) |
保护属性 | |
| float64_t | width |
| float64_t * | sq_lhs |
| float64_t * | sq_rhs |
| CGaussianKernel | ( | ) |
default constructor
在文件GaussianKernel.cpp第20行定义。
| CGaussianKernel | ( | int32_t | size, |
| float64_t | width | ||
| ) |
| CGaussianKernel | ( | CDotFeatures * | l, |
| CDotFeatures * | r, | ||
| float64_t | width, | ||
| int32_t | size = 10 |
||
| ) |
constructor
| l | features of left-hand side |
| r | features of right-hand side |
| width | width |
| size | cache size |
在文件GaussianKernel.cpp第34行定义。
| ~CGaussianKernel | ( | ) | [virtual] |
在文件GaussianKernel.cpp第44行定义。
| 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 |
重载CDotKernel。
在文件GaussianKernel.cpp第81行定义。
| virtual EKernelType get_kernel_type | ( | ) | [virtual] |
| virtual const char* get_name | ( | void | ) | const [virtual] |
| virtual float64_t get_width | ( | void | ) | const [virtual] |
initialize kernel
| l | features of left-hand side |
| r | features of right-hand side |
free sq_{r,l}hs first
重载CDotKernel。
在文件GaussianKernel.cpp第71行定义。
| void load_serializable_post | ( | void | ) | throw (ShogunException) [protected, virtual] |
Can (optionally) be overridden to post-initialize some member variables which are not PARAMETER::ADD'ed. Make sure that at first the overridden method BASE_CLASS::LOAD_SERIALIZABLE_POST is called.
| ShogunException | Will be thrown if an error occurres. |
重载CKernel。
在文件GaussianKernel.cpp第87行定义。
squared left-hand side
在文件GaussianKernel.h第135行定义。
squared right-hand side
在文件GaussianKernel.h第137行定义。
width
在文件GaussianKernel.h第133行定义。