SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianARDKernel.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Jacob Walker
8  *
9  * Adapted from WeightedDegreeRBFKernel.h
10  */
11 
12 #ifndef GAUSSIANARDKERNEL_H_
13 #define GAUSSIANARDKERNEL_H_
14 
15 #include <shogun/lib/config.h>
16 
17 #include <shogun/lib/common.h>
21 
22 namespace shogun
23 {
24 
27 {
28 public:
31 
37  CGaussianARDKernel(int32_t size, float64_t width);
38 
47  int32_t size=10, float64_t width=2.0);
48 
50  virtual ~CGaussianARDKernel();
51 
57 
64  virtual bool init(CFeatures* l, CFeatures* r);
65 
71 
76  virtual const char* get_name() const { return "GaussianARDKernel"; }
77 
86  index_t index=-1);
87 
88 protected:
97  virtual float64_t compute(int32_t idx_a, int32_t idx_b);
98 
99 private:
100  void init();
101 
102 protected:
105 };
106 }
107 #endif /* GAUSSIANARDKERNEL_H_ */
virtual SGMatrix< float64_t > get_parameter_gradient(const TParameter *param, index_t index=-1)
virtual EKernelType get_kernel_type()
EKernelType
Definition: Kernel.h:54
int32_t index_t
Definition: common.h:62
Linear Kernel with Automatic Relevance Detection.
static CGaussianARDKernel * obtain_from_generic(CKernel *kernel)
parameter struct
Definition: Parameter.h:32
float64_t kernel(int32_t idx_a, int32_t idx_b)
Definition: Kernel.h:201
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
Gaussian Kernel with Automatic Relevance Detection.
double float64_t
Definition: common.h:50
The class Features is the base class of all feature objects.
Definition: Features.h:68
virtual const char * get_name() const
The Kernel base class.
Definition: Kernel.h:153
virtual bool init(CFeatures *l, CFeatures *r)

SHOGUN Machine Learning Toolbox - Documentation