the class DimensionReductionPreprocessor, a base class for preprocessors used to lower the dimensionality of given simple features (dense matrices).
Definition at line 30 of file DimensionReductionPreprocessor.h.

Public Member Functions | |
| CDimensionReductionPreprocessor () | |
| CDimensionReductionPreprocessor (CEmbeddingConverter *converter) | |
| 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 () const |
| void | set_distance (CDistance *distance) |
| CDistance * | get_distance () const |
| void | set_kernel (CKernel *kernel) |
| CKernel * | get_kernel () const |
Protected Member Functions | |
| void | init () |
Protected Attributes | |
| int32_t | m_target_dim |
| CDistance * | m_distance |
| CKernel * | m_kernel |
| CEmbeddingConverter * | m_converter |
default constructor
Definition at line 10 of file DimensionReductionPreprocessor.cpp.
| CDimensionReductionPreprocessor | ( | CEmbeddingConverter * | converter | ) |
convenience constructor converting any embeddingconverter into a dimensionreduction preprocessor
| converter | embedding converter |
Definition at line 21 of file DimensionReductionPreprocessor.cpp.
| ~CDimensionReductionPreprocessor | ( | ) | [virtual] |
destructor
Definition at line 33 of file DimensionReductionPreprocessor.cpp.
apply preproc to feature matrix by default does nothing, returns given features' matrix
Implements CSimplePreprocessor< float64_t >.
Reimplemented in CKernelPCA, and CPCA.
Definition at line 40 of file DimensionReductionPreprocessor.cpp.
apply preproc to feature vector by default does nothing, returns given feature vector
Implements CSimplePreprocessor< float64_t >.
Reimplemented in CKernelPCA, and CPCA.
Definition at line 67 of file DimensionReductionPreprocessor.h.
| void cleanup | ( | ) | [virtual] |
cleanup set empty by default, should be defined if dimension reduction preprocessor should free some resources
Implements CPreprocessor.
Reimplemented in CKernelPCA, and CPCA.
Definition at line 63 of file DimensionReductionPreprocessor.cpp.
| CDistance * get_distance | ( | ) | const |
getter for distance
Definition at line 88 of file DimensionReductionPreprocessor.cpp.
| CKernel * get_kernel | ( | ) | const |
| virtual const char* get_name | ( | ) | const [virtual] |
get name
Implements CSGObject.
Reimplemented in CKernelPCA, and CPCA.
Definition at line 73 of file DimensionReductionPreprocessor.h.
| int32_t get_target_dim | ( | ) | const |
getter for target dimension
Definition at line 76 of file DimensionReductionPreprocessor.cpp.
| EPreprocessorType get_type | ( | ) | const [virtual] |
get type
Reimplemented from CSimplePreprocessor< float64_t >.
Reimplemented in CKernelPCA, and CPCA.
Definition at line 68 of file DimensionReductionPreprocessor.cpp.
| 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 CKernelPCA, and CPCA.
Definition at line 58 of file DimensionReductionPreprocessor.cpp.
| void init | ( | ) | [protected] |
default init
Reimplemented from CSGObject.
Reimplemented in CKernelPCA, and CPCA.
Definition at line 107 of file DimensionReductionPreprocessor.cpp.
| void set_distance | ( | CDistance * | distance | ) |
setter for distance
| distance | distance to set |
Definition at line 81 of file DimensionReductionPreprocessor.cpp.
| void set_kernel | ( | CKernel * | kernel | ) |
setter for kernel
| kernel | kernel to set |
Definition at line 94 of file DimensionReductionPreprocessor.cpp.
| void set_target_dim | ( | int32_t | dim | ) |
setter for target dimension
| dim | target dimension |
Definition at line 70 of file DimensionReductionPreprocessor.cpp.
CEmbeddingConverter* m_converter [protected] |
embedding converter to be used
Definition at line 125 of file DimensionReductionPreprocessor.h.
CDistance* m_distance [protected] |
distance to be used
Definition at line 119 of file DimensionReductionPreprocessor.h.
kernel to be used
Definition at line 122 of file DimensionReductionPreprocessor.h.
int32_t m_target_dim [protected] |
target dim of dimensionality reduction preprocessor
Definition at line 116 of file DimensionReductionPreprocessor.h.