11 #ifndef _DOTKERNEL_H___ 12 #define _DOTKERNEL_H___ 74 SG_ERROR(
"train or test features #dimension mismatch (l:%d vs. r:%d)\n",
101 virtual const char*
get_name()
const {
return "DotKernel"; }
CDotKernel(CFeatures *l, CFeatures *r)
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual EKernelType get_kernel_type()=0
Features that support dot products among other operations.
virtual const char * get_name() const
EFeatureClass
shogun feature class
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual bool init(CFeatures *l, CFeatures *r)
virtual EFeatureClass get_feature_class() const =0
virtual EFeatureClass get_feature_class()
EFeatureType
shogun feature type
CFeatures * rhs
feature vectors to occur on right hand side
virtual EFeatureType get_feature_type()
all of classes and functions are contained in the shogun namespace
CDotKernel(int32_t cachesize)
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
bool has_property(EFeatureProperty p) const
virtual EFeatureType get_feature_type() const =0