12 #ifndef _WEIGHTEDCOMMWORDSTRINGKERNEL_H___
13 #define _WEIGHTEDCOMMWORDSTRINGKERNEL_H___
23 class CCommWordStringKernel;
74 bool use_sign=
false, int32_t size=10);
129 virtual const char*
get_name()
const {
return "WeightedCommWordStringKernel"; }
150 int32_t max_degree, int32_t& num_feat, int32_t& num_sym,
151 float64_t* target, int32_t num_suppvec, int32_t* IDX,
162 int32_t idx_a, int32_t idx_b,
bool do_sort);
virtual bool init(CFeatures *l, CFeatures *r)
virtual EFeatureType get_feature_type()
The WeightedCommWordString kernel may be used to compute the weighted spectrum kernel (i...
CWeightedCommWordStringKernel()
virtual EKernelType get_kernel_type()
virtual const char * get_name() const
virtual void add_to_normal(int32_t idx, float64_t weight)
The CommWordString kernel may be used to compute the spectrum kernel from strings that have been mapp...
bool set_weights(SGVector< float64_t > weights)
EFeatureType
shogun feature type
all of classes and functions are contained in the shogun namespace
virtual ~CWeightedCommWordStringKernel()
The class Features is the base class of all feature objects.
virtual float64_t * compute_scoring(int32_t max_degree, int32_t &num_feat, int32_t &num_sym, float64_t *target, int32_t num_suppvec, int32_t *IDX, float64_t *alphas, bool do_init=true)
virtual float64_t compute_helper(int32_t idx_a, int32_t idx_b, bool do_sort)
virtual float64_t compute_optimized(int32_t idx)