11 #ifndef _SPARSEKERNEL_H___
12 #define _SPARSEKERNEL_H___
62 SG_ERROR(
"train or test features #dimension mismatch (l:%d vs. r:%d)\n",
86 return "SparseKernel"; }
virtual EKernelType get_kernel_type()=0
virtual bool init(CFeatures *l, CFeatures *r)
Template class SparseFeatures implements sparse matrices.
EFeatureClass
shogun feature class
CSparseKernel(CFeatures *l, CFeatures *r)
virtual EFeatureClass get_feature_class() const =0
virtual EFeatureClass get_feature_class()
virtual EFeatureType get_feature_type()
EFeatureType
shogun feature type
Template class SparseKernel, is the base class of kernels working on sparse features.
CFeatures * rhs
feature vectors to occur on right hand side
all of classes and functions are contained in the shogun namespace
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
CSparseKernel(int32_t cachesize)
virtual EFeatureType get_feature_type() const =0
virtual const char * get_name() const