Template class SparseKernel, is the base class of kernels working on sparse features.
See e.g. the CSparseGaussianKernel for an example.
Definition at line 24 of file SparseKernel.h.
Public Member Functions | |
CSparseKernel (int32_t cachesize) | |
CSparseKernel (CFeatures *l, CFeatures *r) | |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EFeatureClass | get_feature_class () |
virtual EFeatureType | get_feature_type () |
virtual const char * | get_name (void) const |
virtual EKernelType | get_kernel_type ()=0 |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
template<> | |
EFeatureType | get_feature_type () |
CSparseKernel | ( | int32_t | cachesize | ) |
CSparseKernel | ( | CFeatures * | l, | |
CFeatures * | r | |||
) |
constructor
l | features for left-hand side | |
r | features for right-hand side |
Definition at line 38 of file SparseKernel.h.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
Implements CKernel.
Definition at line 70 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 108 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 106 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 100 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 102 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 104 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 98 of file SparseKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 96 of file SparseKernel.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
virtual EKernelType get_kernel_type | ( | ) | [pure virtual] |
return what type of kernel we are, e.g. Linear,Polynomial, Gaussian,...
abstract base method
Implements CKernel.
virtual const char* get_name | ( | void | ) | const [virtual] |
Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.
Implements CSGObject.
Definition at line 83 of file SparseKernel.h.
initialize kernel
l | features of left-hand side | |
r | features of right-hand side |
Reimplemented from CKernel.
Definition at line 49 of file SparseKernel.h.