12 #ifndef _PRODUCTKERNEL_H___
13 #define _PRODUCTKERNEL_H___
27 class CCombinedFeatures;
28 class CDynamicObjectArray;
85 virtual const char*
get_name()
const {
return "ProductKernel"; }
233 #endif //USE_SVMLIGHT
250 #endif //USE_SVMLIGHT
int32_t num_rhs
number of feature vectors on right hand side
The Product kernel is used to combine a number of kernels into a single ProductKernel object by eleme...
virtual EFeatureClass get_feature_class()
virtual EFeatureType get_feature_type()
virtual bool has_features()
bool delete_kernel(int32_t idx)
int32_t get_num_subkernels()
bool insert_element(CSGObject *e, int32_t index)
SGMatrix< float64_t > get_parameter_gradient(const TParameter *param, index_t index=-1)
CProductKernel(int32_t size=10)
virtual void remove_lhs_and_rhs()
virtual EKernelType get_kernel_type()
int32_t get_num_elements() const
CDynamicObjectArray * get_array()
virtual int32_t get_num_vec_lhs()
EFeatureClass
shogun feature class
virtual void remove_rhs()
bool has_property(EKernelProperty p)
virtual void remove_lhs()
void adjust_num_lhs_rhs_initialized(CKernel *k)
virtual const char * get_name() const
void unset_property(EKernelProperty p)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
int32_t num_lhs
number of feature vectors on left hand side
virtual int32_t get_num_vec_rhs()
virtual ~CProductKernel()
EFeatureType
shogun feature type
CFeatures * rhs
feature vectors to occur on right hand side
CDynamicObjectArray * kernel_array
bool insert_kernel(CKernel *k, int32_t idx)
CKernel * get_kernel(int32_t idx)
all of classes and functions are contained in the shogun namespace
CProductKernel * KernelToProductKernel(CKernel *n)
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
virtual float64_t compute(int32_t x, int32_t y)
CSGObject * get_element(int32_t index) const
void push_back(CSGObject *e)
bool delete_element(int32_t idx)
bool append_kernel(CKernel *k)
virtual bool init(CFeatures *lhs, CFeatures *rhs)
bool precompute_subkernels()