SHOGUN
v1.1.0
|
Template class StringPreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CStringFeatures (i.e. strings of variable length).
Two new functions apply_to_string() and apply_to_string_features() are defined in this interface that need to be implemented in each particular preprocessor operating on CStringFeatures.
Definition at line 30 of file StringPreprocessor.h.
Public Member Functions | |
CStringPreprocessor () | |
virtual bool | apply_to_string_features (CFeatures *f)=0 |
virtual ST * | apply_to_string (ST *f, int32_t &len)=0 |
apply preproc on single feature vector | |
virtual EFeatureClass | get_feature_class () |
return that we are string features (just fixed size matrices) | |
virtual EFeatureType | get_feature_type () |
return feature type | |
virtual const char * | get_name () const |
return the name of the preprocessor | |
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 () |
![]() | |
CPreprocessor () | |
virtual | ~CPreprocessor () |
virtual bool | init (CFeatures *features)=0 |
virtual void | cleanup ()=0 |
![]() | |
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 | |
![]() | |
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) |
constructor
Definition at line 35 of file StringPreprocessor.h.
|
pure virtual |
apply preproc on single feature vector
Implemented in CDecompressString< ST >, CSortWordString, and CSortUlongString.
|
pure virtual |
apply preproc on feature matrix result in feature matrix return pointer to feature_matrix, i.e. f->get_feature_matrix();
Implemented in CDecompressString< ST >, CSortWordString, and CSortUlongString.
|
virtual |
return that we are string features (just fixed size matrices)
Implements CPreprocessor.
Definition at line 46 of file StringPreprocessor.h.
|
virtual |
return feature type
Implements CPreprocessor.
|
virtual |
Implements CPreprocessor.
Definition at line 58 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 63 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 68 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 73 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 78 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 83 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 88 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 93 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 98 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 103 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 108 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 113 of file StringPreprocessor.h.
|
virtual |
Implements CPreprocessor.
Definition at line 118 of file StringPreprocessor.h.
|
virtual |
return the name of the preprocessor
Implements CSGObject.
Reimplemented in CDecompressString< ST >, CSortWordString, and CSortUlongString.
Definition at line 51 of file StringPreprocessor.h.
|
virtual |
return a type of preprocessor
Implements CPreprocessor.
Reimplemented in CDecompressString< ST >, CSortWordString, and CSortUlongString.
Definition at line 54 of file StringPreprocessor.h.