SHOGUN
v1.1.0
|
weighted degree RBF kernel
Definition at line 12 of file WeightedDegreeRBFKernel.h.
Public Member Functions | |
CWeightedDegreeRBFKernel () | |
CWeightedDegreeRBFKernel (int32_t size, float64_t width, int32_t degree, int32_t nof_properties) | |
CWeightedDegreeRBFKernel (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, float64_t width, int32_t degree, int32_t nof_properties, int32_t size=10) | |
virtual | ~CWeightedDegreeRBFKernel () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
virtual EFeatureClass | get_feature_class () |
virtual EFeatureType | get_feature_type () |
bool | set_degree (int32_t deg) |
int32_t | get_degree () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
bool | init_wd_weights () |
Protected Attributes | |
float64_t | width |
int32_t | degree |
int32_t | nof_properties |
float64_t * | weights |
default constructor
Definition at line 19 of file WeightedDegreeRBFKernel.cpp.
CWeightedDegreeRBFKernel | ( | int32_t | size, |
float64_t | width, | ||
int32_t | degree, | ||
int32_t | nof_properties | ||
) |
constructor
size | cache size |
width | width |
degree | degree |
nof_properties | number of properties per amino acid |
Definition at line 25 of file WeightedDegreeRBFKernel.cpp.
CWeightedDegreeRBFKernel | ( | CSimpleFeatures< float64_t > * | l, |
CSimpleFeatures< float64_t > * | r, | ||
float64_t | width, | ||
int32_t | degree, | ||
int32_t | nof_properties, | ||
int32_t | size = 10 |
||
) |
constructor
l | features of left-hand side |
r | features of right-hand side |
width | width |
degree | degree |
nof_properties | number of properties per amino acid |
size | cache size |
Definition at line 31 of file WeightedDegreeRBFKernel.cpp.
~CWeightedDegreeRBFKernel | ( | ) | [virtual] |
Definition at line 39 of file WeightedDegreeRBFKernel.cpp.
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 |
Reimplemented from CDotKernel.
Definition at line 78 of file WeightedDegreeRBFKernel.cpp.
int32_t get_degree | ( | ) |
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
Reimplemented from CDotKernel.
Definition at line 69 of file WeightedDegreeRBFKernel.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
Reimplemented from CDotKernel.
Definition at line 75 of file WeightedDegreeRBFKernel.h.
virtual EKernelType get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are
Implements CDotKernel.
Definition at line 56 of file WeightedDegreeRBFKernel.h.
virtual const char* get_name | ( | ) | const [virtual] |
return the kernel's name
Reimplemented from CDotKernel.
Definition at line 62 of file WeightedDegreeRBFKernel.h.
initialize kernel
l | features of left-hand side |
r | features of right-hand side |
Reimplemented from CDotKernel.
Definition at line 45 of file WeightedDegreeRBFKernel.cpp.
bool init_wd_weights | ( | ) | [protected] |
init degree weights
Definition at line 52 of file WeightedDegreeRBFKernel.cpp.
bool set_degree | ( | int32_t | deg | ) |
set degree
deg | new degree |
Definition at line 83 of file WeightedDegreeRBFKernel.h.
int32_t degree [protected] |
degree
Definition at line 113 of file WeightedDegreeRBFKernel.h.
int32_t nof_properties [protected] |
number of properties per amino acid
Definition at line 116 of file WeightedDegreeRBFKernel.h.
weights
Definition at line 120 of file WeightedDegreeRBFKernel.h.
width
Definition at line 110 of file WeightedDegreeRBFKernel.h.