Public Member Functions

CSparseKernel< ST > Class Template Reference


Detailed Description

template<class ST>
class shogun::CSparseKernel< ST >

Template class SparseKernel, is the base class of kernels working on sparse features.

See e.g. the CSparseGaussianKernel for an example.

Definition at line 24 of file SparseKernel.h.

Inheritance diagram for CSparseKernel< ST >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CSparseKernel (int32_t cachesize)
 CSparseKernel (CFeatures *l, CFeatures *r)
virtual bool init (CFeatures *l, CFeatures *r)
virtual EFeatureClass get_feature_class ()
virtual EFeatureType get_feature_type ()
virtual const char * get_name () const
virtual EKernelType get_kernel_type ()=0
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()

Constructor & Destructor Documentation

CSparseKernel ( int32_t  cachesize  ) 

constructor

Parameters:
cachesize cache size

Definition at line 31 of file SparseKernel.h.

CSparseKernel ( CFeatures l,
CFeatures r 
)

constructor

Parameters:
l features for left-hand side
r features for right-hand side

Definition at line 38 of file SparseKernel.h.


Member Function Documentation

virtual EFeatureClass get_feature_class (  )  [virtual]

return feature class the kernel can deal with

Returns:
feature class SPARSE

Implements CKernel.

Definition at line 70 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 108 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 106 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 100 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 102 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 104 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 98 of file SparseKernel.h.

EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

abstract base method

Returns:
feature type

Implements CKernel.

Definition at line 96 of file SparseKernel.h.

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

Returns:
templated feature type

Implements CKernel.

virtual EKernelType get_kernel_type (  )  [pure virtual]

return what type of kernel we are, e.g. Linear,Polynomial, Gaussian,...

abstract base method

Returns:
kernel type

Implements CKernel.

virtual const char* get_name (  )  const [virtual]

Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.

Returns:
name of the SGSerializable

Implements CSGObject.

Definition at line 83 of file SparseKernel.h.

virtual bool init ( CFeatures l,
CFeatures r 
) [virtual]

initialize kernel

Parameters:
l features of left-hand side
r features of right-hand side
Returns:
if initializing was successful

Reimplemented from CKernel.

Definition at line 49 of file SparseKernel.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation