12 #ifndef _LINEARKERNEL_H___
13 #define _LINEARKERNEL_H___
72 virtual const char*
get_name()
const {
return "LinearKernel"; }
83 int32_t num_suppvec, int32_t* sv_idx,
float64_t* alphas);
Computes the standard linear kernel on CDotFeatures.
virtual float64_t compute_optimized(int32_t idx)
virtual bool delete_optimization()
void set_is_initialized(bool p_init)
A generic KernelMachine interface.
Features that support dot products among other operations.
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual void clear_normal()
SGVector< float64_t > get_w() const
virtual void add_to_normal(int32_t idx, float64_t weight)
SGVector< float64_t > normal
virtual bool init(CFeatures *l, CFeatures *r)
all of classes and functions are contained in the shogun namespace
CFeatures * lhs
feature vectors to occur on left hand side
void set_w(SGVector< float64_t > w)
The class Features is the base class of all feature objects.
virtual EKernelType get_kernel_type()
virtual const char * get_name() const
virtual bool init_optimization(int32_t num_suppvec, int32_t *sv_idx, float64_t *alphas)