Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes

CDimensionReductionPreprocessor Class Reference


Detailed Description

the class DimensionReductionPreprocessor, a base class for preprocessors used to lower the dimensionality of given simple features (dense matrices).

Definition at line 27 of file DimensionReductionPreprocessor.h.

Inheritance diagram for CDimensionReductionPreprocessor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CDimensionReductionPreprocessor ()
virtual ~CDimensionReductionPreprocessor ()
virtual bool init (CFeatures *data)
virtual void cleanup ()
virtual SGMatrix< float64_tapply_to_feature_matrix (CFeatures *features)
virtual SGVector< float64_tapply_to_feature_vector (SGVector< float64_t > vector)
virtual const char * get_name () const
virtual EPreprocessorType get_type () const
void set_target_dim (int32_t dim)
int32_t get_target_dim ()

Static Public Attributes

static const int32_t AUTO_TARGET_DIM = -1

Protected Member Functions

void init ()

Protected Attributes

int32_t m_target_dim

Constructor & Destructor Documentation

Definition at line 32 of file DimensionReductionPreprocessor.h.

virtual ~CDimensionReductionPreprocessor (  )  [virtual]

Definition at line 40 of file DimensionReductionPreprocessor.h.


Member Function Documentation

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

apply preproc to feature matrix by default does nothing, returns given features' matrix

Implements CSimplePreprocessor< float64_t >.

Reimplemented in CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CPCA.

Definition at line 63 of file DimensionReductionPreprocessor.h.

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

apply preproc to feature vector by default does nothing, returns given feature vector

Implements CSimplePreprocessor< float64_t >.

Reimplemented in CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CPCA.

Definition at line 71 of file DimensionReductionPreprocessor.h.

virtual void cleanup (  )  [virtual]

cleanup set empty by default, should be defined if dimension reduction preprocessor should free some resources

Implements CPreprocessor.

Reimplemented in CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CPCA.

Definition at line 55 of file DimensionReductionPreprocessor.h.

virtual const char* get_name ( void   )  const [virtual]
int32_t get_target_dim (  ) 

getter for target dimension

Returns:
target dimension

Definition at line 94 of file DimensionReductionPreprocessor.h.

virtual EPreprocessorType get_type (  )  const [virtual]
virtual bool init ( CFeatures data  )  [virtual]

init set true by default, should be defined if dimension reduction preprocessor is using some initialization

Implements CPreprocessor.

Reimplemented in CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CPCA.

Definition at line 46 of file DimensionReductionPreprocessor.h.

void init ( void   )  [protected]
void set_target_dim ( int32_t  dim  ) 

setter for target dimension

Parameters:
dim target dimension

Definition at line 85 of file DimensionReductionPreprocessor.h.


Member Data Documentation

const int32_t AUTO_TARGET_DIM = -1 [static]

const indicating target dimensionality should be determined automagically

Definition at line 102 of file DimensionReductionPreprocessor.h.

int32_t m_target_dim [protected]

target dim of dimensionality reduction preprocessor

Definition at line 116 of file DimensionReductionPreprocessor.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