11 #ifndef _COMMULONGSTRINGKERNEL_H___
12 #define _COMMULONGSTRINGKERNEL_H___
23 template <
class T>
class CDynamicArray;
24 template <
class ST>
class CStringFeatures;
95 virtual const char*
get_name()
const {
return "CommUlongStringKernel"; }
105 int32_t count, int32_t* IDX,
float64_t* weights);
186 int32_t &dsize, uint64_t*& dict,
float64_t*& dweights)
SGVector< uint64_t > dictionary
virtual bool delete_optimization()
virtual EFeatureType get_feature_type()
virtual void clear_normal()
Template class StringFeatures implements a list of strings.
The CommUlongString kernel may be used to compute the spectrum kernel from strings that have been map...
void get_dictionary(int32_t &dsize, uint64_t *&dict, float64_t *&dweights)
virtual const char * get_name() const
virtual float64_t compute_optimized(int32_t idx)
virtual ~CCommUlongStringKernel()
virtual bool init(CFeatures *l, CFeatures *r)
virtual void remove_lhs()
CCommUlongStringKernel(int32_t size=10, bool use_sign=false)
float64_t compute(int32_t idx_a, int32_t idx_b)
virtual void add_to_normal(int32_t idx, float64_t weight)
virtual EKernelType get_kernel_type()
virtual bool init_optimization(int32_t count, int32_t *IDX, float64_t *weights)
virtual void remove_rhs()
EFeatureType
shogun feature type
SGVector< float64_t > dictionary_weights
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
CKernelNormalizer * normalizer
void merge_dictionaries(int32_t &t, int32_t j, int32_t &k, uint64_t *vec, SGVector< uint64_t > dic, SGVector< float64_t > dic_weights, float64_t weight, int32_t vec_idx)
virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)=0
Template class StringKernel, is the base class of all String Kernels.