SHOGUN
v1.1.0
|
Class Preprocessor defines a preprocessor interface.
Preprocessors are transformation functions that doesn't change the domain of the input features. These functions can be applied in-place if the input features fit in memory or can be applied on-the-fly when (depending on features) a feature caching strategy is applied. However, if the individual features are in they have to stay in
although the dimensionality of the feature vectors is allowed to be changed.
As preprocessors might need a certain initialization they may expect that the init() function is called before anything else. The actual preprocessing is feature type dependent and thus coordinated in the sub-classes, cf. e.g. CSimplePreprocessor.
Definition at line 74 of file Preprocessor.h.
Public Member Functions | |
CPreprocessor () | |
virtual | ~CPreprocessor () |
virtual bool | init (CFeatures *features)=0 |
virtual void | cleanup ()=0 |
virtual EFeatureType | get_feature_type ()=0 |
virtual EFeatureClass | get_feature_class ()=0 |
virtual EPreprocessorType | get_type () const =0 |
![]() | |
CSGObject () | |
CSGObject (const CSGObject &orig) | |
virtual | ~CSGObject () |
virtual const char * | get_name () const =0 |
virtual bool | is_generic (EPrimitiveType *generic) const |
template<class T > | |
void | set_generic () |
void | unset_generic () |
virtual void | print_serializable (const char *prefix="") |
virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
void | set_global_io (SGIO *io) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_global_version () |
SGVector< char * > | get_modelsel_names () |
char * | get_modsel_param_descr (const char *param_name) |
index_t | get_modsel_param_index (const char *param_name) |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
virtual void | load_serializable_pre () throw (ShogunException) |
virtual void | load_serializable_post () throw (ShogunException) |
virtual void | save_serializable_pre () throw (ShogunException) |
virtual void | save_serializable_post () throw (ShogunException) |
CPreprocessor | ( | ) |
constructor
Definition at line 78 of file Preprocessor.h.
|
virtual |
destructor
Definition at line 83 of file Preprocessor.h.
|
pure virtual |
clean-up. should be called (if necessary) after processing
Implemented in CRandomFourierGaussPreproc, CPCA, CDimensionReductionPreprocessor, CDecompressString< ST >, CKernelPCA, CLogPlusOne, CPruneVarSubMean, CNormOne, CSortWordString, and CSortUlongString.
|
pure virtual |
Implemented in CRandomFourierGaussPreproc, CSparsePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< float64_t >, CStringPreprocessor< ST >, CStringPreprocessor< uint16_t >, and CStringPreprocessor< uint64_t >.
|
pure virtual |
Implemented in CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CRandomFourierGaussPreproc, CStringPreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< ST >, CStringPreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< float64_t >, CStringPreprocessor< ST >, CStringPreprocessor< uint16_t >, CStringPreprocessor< uint64_t >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, CSimplePreprocessor< ST >, and CSimplePreprocessor< ST >.
|
pure virtual |
Implemented in CRandomFourierGaussPreproc, CPCA, CKernelPCA, CDimensionReductionPreprocessor, CDecompressString< ST >, CLogPlusOne, CNormOne, CPruneVarSubMean, CSortWordString, CSortUlongString, CSparsePreprocessor< ST >, CStringPreprocessor< ST >, CStringPreprocessor< uint16_t >, CStringPreprocessor< uint64_t >, CSimplePreprocessor< ST >, and CSimplePreprocessor< float64_t >.
|
pure virtual |
initialize preprocessor with features
Implemented in CRandomFourierGaussPreproc, CPCA, CDimensionReductionPreprocessor, CKernelPCA, CDecompressString< ST >, CLogPlusOne, CNormOne, CPruneVarSubMean, CSortWordString, and CSortUlongString.