Public Member Functions | Protected Member Functions | Protected Attributes

CKernelPCA Class Reference


Detailed Description

Preprocessor KernelPCA performs kernel principal component analysis.

Schoelkopf, B., Smola, A. J., & Mueller, K. R. (1999). Kernel Principal Component Analysis. Advances in kernel methods support vector learning, 1327(3), 327-352. MIT Press. Retrieved from http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.8744

Definition at line 35 of file KernelPCA.h.

Inheritance diagram for CKernelPCA:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CKernelPCA ()
 CKernelPCA (CKernel *k)
virtual ~CKernelPCA ()
virtual bool init (CFeatures *features)
 initialize preprocessor from features
virtual void cleanup ()
 cleanup
virtual SGMatrix< float64_tapply_to_feature_matrix (CFeatures *features)
virtual SGVector< float64_tapply_to_feature_vector (SGVector< float64_t > vector)
virtual CSimpleFeatures
< float64_t > * 
apply_to_string_features (CFeatures *features)
CKernelget_kernel () const
void set_kernel (CKernel *k)
SGMatrix< float64_tget_transformation_matrix () const
SGVector< float64_tget_bias_vector () const
virtual const char * get_name () const
virtual EPreprocessorType get_type () const

Protected Member Functions

void init ()

Protected Attributes

CFeaturesm_init_features
SGMatrix< float64_tm_transformation_matrix
SGVector< float64_tm_bias_vector
bool m_initialized
CKernelm_kernel

Constructor & Destructor Documentation

CKernelPCA (  ) 

default constructor

Definition at line 29 of file KernelPCA.cpp.

CKernelPCA ( CKernel k  ) 

constructor

Parameters:
k kernel to be used

Definition at line 34 of file KernelPCA.cpp.

~CKernelPCA (  )  [virtual]

Definition at line 64 of file KernelPCA.cpp.


Member Function Documentation

SGMatrix< float64_t > apply_to_feature_matrix ( CFeatures features  )  [virtual]

apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 133 of file KernelPCA.cpp.

SGVector< float64_t > apply_to_feature_vector ( SGVector< float64_t vector  )  [virtual]

apply preproc on single feature vector result in feature matrix

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 165 of file KernelPCA.cpp.

CSimpleFeatures< float64_t > * apply_to_string_features ( CFeatures features  )  [virtual]

apply to string features

Parameters:
features 

Definition at line 190 of file KernelPCA.cpp.

void cleanup (  )  [virtual]

cleanup

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 55 of file KernelPCA.cpp.

SGVector<float64_t> get_bias_vector (  )  const

get bias of KPCA

Definition at line 96 of file KernelPCA.h.

CKernel* get_kernel (  )  const

get kernel

Definition at line 69 of file KernelPCA.h.

virtual const char* get_name ( void   )  const [virtual]
Returns:
object name

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 102 of file KernelPCA.h.

SGMatrix<float64_t> get_transformation_matrix (  )  const

get transformation matrix, i.e. eigenvectors

Definition at line 88 of file KernelPCA.h.

virtual EPreprocessorType get_type (  )  const [virtual]
Returns:
the type of preprocessor

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 105 of file KernelPCA.h.

void init ( void   )  [protected]

default init

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 41 of file KernelPCA.cpp.

bool init ( CFeatures features  )  [virtual]

initialize preprocessor from features

Reimplemented from CDimensionReductionPreprocessor.

Definition at line 72 of file KernelPCA.cpp.

void set_kernel ( CKernel k  ) 

set kernel

Parameters:
k 

Definition at line 78 of file KernelPCA.h.


Member Data Documentation

bias vector

Definition at line 121 of file KernelPCA.h.

CFeatures* m_init_features [protected]

features used by init. needed for apply

Definition at line 115 of file KernelPCA.h.

bool m_initialized [protected]

true when already initialized

Definition at line 124 of file KernelPCA.h.

CKernel* m_kernel [protected]

kernel

Definition at line 127 of file KernelPCA.h.

transformation matrix

Definition at line 118 of file KernelPCA.h.


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

SHOGUN Machine Learning Toolbox - Documentation