Template class StringKernel, is the base class of all String Kernels.
For a (very complex) example see e.g. CWeightedDegreeStringKernel
Definition at line 24 of file StringKernel.h.
Public Member Functions | |
CStringKernel (int32_t cachesize=0) | |
CStringKernel (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 () 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 () |
CStringKernel | ( | int32_t | cachesize = 0 |
) |
CStringKernel | ( | CFeatures * | l, | |
CFeatures * | r | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side |
Definition at line 38 of file StringKernel.h.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
return feature class the kernel can deal with
Implements CKernel.
Definition at line 69 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 107 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 105 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 99 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 101 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 103 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 97 of file StringKernel.h.
EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
abstract base method
Implements CKernel.
Definition at line 95 of file StringKernel.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
return feature type the kernel can deal with
Implements CKernel.
Reimplemented in CCommUlongStringKernel, CCommWordStringKernel, and CWeightedCommWordStringKernel.
virtual EKernelType get_kernel_type | ( | ) | [pure virtual] |
return what type of kernel we are, e.g. Linear,Polynomial, Gaussian,...
abstract base method
Implements CKernel.
Implemented in CCommUlongStringKernel, CCommWordStringKernel, CDistantSegmentsKernel, CFixedDegreeStringKernel, CGaussianMatchStringKernel, CHistogramWordStringKernel, CLinearStringKernel, CLocalAlignmentStringKernel, CLocalityImprovedStringKernel, CMatchWordStringKernel, COligoStringKernel, CPolyMatchStringKernel, CPolyMatchWordStringKernel, CRegulatoryModulesStringKernel, CSalzbergWordStringKernel, CSimpleLocalityImprovedStringKernel, CSNPStringKernel, CSparseSpatialSampleStringKernel, CSpectrumMismatchRBFKernel, CSpectrumRBFKernel, CWeightedCommWordStringKernel, CWeightedDegreePositionStringKernel, and CWeightedDegreeStringKernel.
virtual const char* get_name | ( | ) | const [virtual] |
Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.
Implements CSGObject.
Reimplemented in CCommUlongStringKernel, CCommWordStringKernel, CDistantSegmentsKernel, CFixedDegreeStringKernel, CGaussianMatchStringKernel, CHistogramWordStringKernel, CLinearStringKernel, CLocalAlignmentStringKernel, CLocalityImprovedStringKernel, CMatchWordStringKernel, COligoStringKernel, CPolyMatchStringKernel, CPolyMatchWordStringKernel, CRegulatoryModulesStringKernel, CSalzbergWordStringKernel, CSimpleLocalityImprovedStringKernel, CSNPStringKernel, CSparseSpatialSampleStringKernel, CSpectrumMismatchRBFKernel, CSpectrumRBFKernel, CWeightedCommWordStringKernel, CWeightedDegreePositionStringKernel, and CWeightedDegreeStringKernel.
Definition at line 82 of file StringKernel.h.
initialize kernel e.g. setup lhs/rhs of kernel, precompute normalization constants etc. make sure to check that your kernel can deal with the supplied features (!)
l | features for left-hand side | |
r | features for right-hand side |
Reimplemented from CKernel.
Reimplemented in CCommUlongStringKernel, CCommWordStringKernel, CDistantSegmentsKernel, CFixedDegreeStringKernel, CGaussianMatchStringKernel, CHistogramWordStringKernel, CLinearStringKernel, CLocalAlignmentStringKernel, CLocalityImprovedStringKernel, CMatchWordStringKernel, COligoStringKernel, CPolyMatchStringKernel, CPolyMatchWordStringKernel, CRegulatoryModulesStringKernel, CSalzbergWordStringKernel, CSimpleLocalityImprovedStringKernel, CSNPStringKernel, CSparseSpatialSampleStringKernel, CSpectrumMismatchRBFKernel, CSpectrumRBFKernel, CWeightedCommWordStringKernel, CWeightedDegreePositionStringKernel, and CWeightedDegreeStringKernel.
Definition at line 53 of file StringKernel.h.