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.
Public Member Functions | |
CDimensionReductionPreprocessor () | |
virtual | ~CDimensionReductionPreprocessor () |
virtual bool | init (CFeatures *data) |
virtual void | cleanup () |
virtual SGMatrix< float64_t > | apply_to_feature_matrix (CFeatures *features) |
virtual SGVector< float64_t > | apply_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 |
Definition at line 32 of file DimensionReductionPreprocessor.h.
virtual ~CDimensionReductionPreprocessor | ( | ) | [virtual] |
Definition at line 40 of file DimensionReductionPreprocessor.h.
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.
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] |
get name
Implements CSGObject.
Reimplemented in CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CPCA.
Definition at line 77 of file DimensionReductionPreprocessor.h.
int32_t get_target_dim | ( | ) |
getter for target dimension
Definition at line 94 of file DimensionReductionPreprocessor.h.
virtual EPreprocessorType get_type | ( | ) | const [virtual] |
get type
Reimplemented from CSimplePreprocessor< float64_t >.
Reimplemented in CHessianLocallyLinearEmbedding, CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CLocalTangentSpaceAlignment, CMultidimensionalScaling, and CPCA.
Definition at line 80 of file DimensionReductionPreprocessor.h.
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] |
default init
Reimplemented from CSGObject.
Reimplemented in CIsomap, CKernelLocallyLinearEmbedding, CKernelPCA, CLaplacianEigenmaps, CLocallyLinearEmbedding, CMultidimensionalScaling, and CPCA.
Definition at line 107 of file DimensionReductionPreprocessor.h.
void set_target_dim | ( | int32_t | dim | ) |
setter for target dimension
dim | target dimension |
Definition at line 85 of file DimensionReductionPreprocessor.h.
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.