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 ()
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 91 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 89 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 79 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 85 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 83 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 81 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 87 of file SparseKernel.h.

virtual EFeatureType get_feature_type (  )  [virtual]

return feature type the kernel can deal with

Returns:
templated feature type

Implements CKernel.

Reimplemented in CSparseGaussianKernel, and CSparsePolyKernel.

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.

Reimplemented in CSparseGaussianKernel, CSparseLinearKernel, and CSparsePolyKernel.

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