|
SHOGUN
v1.1.0
|
Template class SparsePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CSparseFeatures.
Two new functions apply_to_sparse_feature_vector() and apply_to_sparse_feature_matrix() are defined in this interface that need to be implemented in each particular preprocessor operating on CSparseFeatures.
Definition at line 33 of file SparsePreprocessor.h.

Public Member Functions | |
| CSparsePreprocessor () | |
| virtual SGSparseVector< ST > * | apply_to_sparse_feature_matrix (CSparseFeatures< ST > *f)=0 |
| virtual SGSparseVector< ST > * | apply_to_sparse_feature_vector (SGSparseVector< ST > *f, int32_t &len)=0 |
| virtual EFeatureClass | get_feature_class () |
| return that we are simple minded features (just fixed size matrices) | |
| virtual const char * | get_name () const |
| return the name of the preprocessor | |
| virtual EPreprocessorType | get_type () const |
| return a type of preprocessor | |
Public Member Functions inherited from CPreprocessor | |
| CPreprocessor () | |
| virtual | ~CPreprocessor () |
| virtual bool | init (CFeatures *features)=0 |
| virtual void | cleanup ()=0 |
| virtual EFeatureType | get_feature_type ()=0 |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| 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 | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_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
Definition at line 38 of file SparsePreprocessor.h.
|
pure virtual |
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
|
pure virtual |
apply preproc on single feature vector result in feature matrix
|
virtual |
return that we are simple minded features (just fixed size matrices)
Implements CPreprocessor.
Definition at line 50 of file SparsePreprocessor.h.
|
virtual |
return the name of the preprocessor
Implements CSGObject.
Definition at line 53 of file SparsePreprocessor.h.
|
virtual |
return a type of preprocessor
Implements CPreprocessor.
Definition at line 56 of file SparsePreprocessor.h.