The standard Sigmoid kernel computed on dense real valued features.
Formally, it is computed as
Definition at line 26 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 bool | load_init (FILE *src) |
virtual bool | save_init (FILE *dest) |
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 |
constructor
size | cache size | |
gamma | gamma | |
coef0 | coefficient 0 |
Definition at line 19 of file SigmoidKernel.cpp.
CSigmoidKernel::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 24 of file SigmoidKernel.cpp.
CSigmoidKernel::~CSigmoidKernel | ( | ) | [virtual] |
Definition at line 31 of file SigmoidKernel.cpp.
void CSigmoidKernel::cleanup | ( | ) | [virtual] |
float64_t CSigmoidKernel::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 56 of file SigmoidKernel.cpp.
virtual EKernelType CSigmoidKernel::get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CKernel.
Definition at line 79 of file SigmoidKernel.h.
virtual const char* CSigmoidKernel::get_name | ( | ) | const [virtual] |
return the kernel's name
Implements CSGObject.
Definition at line 85 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 36 of file SigmoidKernel.cpp.
bool CSigmoidKernel::load_init | ( | FILE * | src | ) | [virtual] |
load kernel init_data
src | file to load from |
Implements CKernel.
Definition at line 46 of file SigmoidKernel.cpp.
bool CSigmoidKernel::save_init | ( | FILE * | dest | ) | [virtual] |
save kernel init_data
dest | file to save to |
Implements CKernel.
Definition at line 51 of file SigmoidKernel.cpp.
float64_t CSigmoidKernel::coef0 [protected] |
coefficient 0
Definition at line 102 of file SigmoidKernel.h.
float64_t CSigmoidKernel::gamma [protected] |
gamma
Definition at line 100 of file SigmoidKernel.h.