The standard Sigmoid kernel computed on dense real valued features.
Formally, it is computed as
Definition at line 28 of file SigmoidKernel.h.
Public Member Functions | |
CSigmoidKernel (int32_t size, float64_t gamma, float64_t coef0) | |
CSigmoidKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, int32_t size, float64_t gamma, float64_t coef0) | |
virtual | ~CSigmoidKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
float64_t | gamma |
float64_t | coef0 |
CSigmoidKernel | ( | int32_t | size, | |
float64_t | gamma, | |||
float64_t | coef0 | |||
) |
constructor
size | cache size | |
gamma | gamma | |
coef0 | coefficient 0 |
Definition at line 21 of file SigmoidKernel.cpp.
CSigmoidKernel | ( | CSimpleFeatures< float64_t > * | l, | |
CSimpleFeatures< float64_t > * | r, | |||
int32_t | size, | |||
float64_t | gamma, | |||
float64_t | coef0 | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side | |
size | cache size | |
gamma | gamma | |
coef0 | coefficient 0 |
Definition at line 26 of file SigmoidKernel.cpp.
~CSigmoidKernel | ( | ) | [virtual] |
Definition at line 33 of file SigmoidKernel.cpp.
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 |
Implements CKernel.
Definition at line 48 of file SigmoidKernel.cpp.
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 67 of file SigmoidKernel.h.
virtual const char* get_name | ( | ) | const [virtual] |
return the kernel's name
Implements CSGObject.
Definition at line 73 of file SigmoidKernel.h.
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
Reimplemented from CSimpleKernel< float64_t >.
Definition at line 38 of file SigmoidKernel.cpp.
coefficient 0
Definition at line 90 of file SigmoidKernel.h.
gamma
Definition at line 88 of file SigmoidKernel.h.