SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions
CSimplePreprocessor< ST > Class Template Reference

Detailed Description

template<class ST>
class shogun::CSimplePreprocessor< ST >

Template class SimplePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CSimpleFeatures (i.e. rectangular dense matrices)

Two new functions apply_to_feature_vector() and apply_to_feature_matrix() are defined in this interface that need to be implemented in each particular preprocessor operating on CSimpleFeatures. For examples see e.g. CLogPlusOne or CPCACut.

Definition at line 31 of file SimplePreprocessor.h.

Inheritance diagram for CSimplePreprocessor< ST >:
Inheritance graph
[legend]

Public Member Functions

 CSimplePreprocessor ()
virtual SGMatrix< ST > apply_to_feature_matrix (CFeatures *features)=0
virtual SGVector< ST > apply_to_feature_vector (SGVector< ST > vector)=0
virtual EFeatureClass get_feature_class ()
 return that we are simple features (just fixed size matrices)
virtual EFeatureType get_feature_type ()
 return feature type
virtual EPreprocessorType get_type () const
 return a type of preprocessor
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
template<>
EFeatureType get_feature_type ()
- Public Member Functions inherited from CPreprocessor
 CPreprocessor ()
virtual ~CPreprocessor ()
virtual bool init (CFeatures *features)=0
virtual void cleanup ()=0
- Public Member Functions inherited from CSGObject
 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)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_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

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters
- Protected Member Functions inherited from CSGObject
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)

Constructor & Destructor Documentation

constructor

Definition at line 6 of file SimplePreprocessor.cpp.

Member Function Documentation

virtual SGMatrix<ST> apply_to_feature_matrix ( CFeatures features)
pure virtual

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

Implemented in CPCA, CRandomFourierGaussPreproc, CDimensionReductionPreprocessor, CKernelPCA, CLogPlusOne, CNormOne, and CPruneVarSubMean.

virtual SGVector<ST> apply_to_feature_vector ( SGVector< ST >  vector)
pure virtual

apply preproc on single feature vector result in feature matrix

Implemented in CPCA, CRandomFourierGaussPreproc, CDimensionReductionPreprocessor, CKernelPCA, CLogPlusOne, CNormOne, and CPruneVarSubMean.

EFeatureClass get_feature_class ( )
virtual

return that we are simple features (just fixed size matrices)

Implements CPreprocessor.

Reimplemented in CRandomFourierGaussPreproc.

Definition at line 77 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 10 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 15 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 20 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 25 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 30 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 35 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 40 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 45 of file SimplePreprocessor.cpp.

virtual EFeatureType get_feature_type ( )
virtual

return feature type

Implements CPreprocessor.

Reimplemented in CRandomFourierGaussPreproc.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 50 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 55 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 61 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 66 of file SimplePreprocessor.cpp.

EFeatureType get_feature_type ( )
virtual
Returns
type of objects preprocessor can deal with

Implements CPreprocessor.

Definition at line 71 of file SimplePreprocessor.cpp.

EPreprocessorType get_type ( ) const
virtual

return a type of preprocessor

Implements CPreprocessor.

Reimplemented in CRandomFourierGaussPreproc, CPCA, CKernelPCA, CDimensionReductionPreprocessor, CLogPlusOne, CNormOne, and CPruneVarSubMean.

Definition at line 83 of file SimplePreprocessor.cpp.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation