SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
CGUIPreprocessor Class Reference

Detailed Description

UI preprocessor.

Definition at line 25 of file GUIPreprocessor.h.

Inheritance diagram for CGUIPreprocessor:
Inheritance graph
[legend]

Public Member Functions

 CGUIPreprocessor ()
 CGUIPreprocessor (CSGInterface *interface)
 ~CGUIPreprocessor ()
CPreprocessorcreate_generic (EPreprocessorType type)
CPreprocessorcreate_prunevarsubmean (bool divide_by_std=false)
CPreprocessorcreate_pca (bool do_whitening, float64_t threshold)
bool add_preproc (CPreprocessor *preproc)
bool del_preproc ()
bool clean_preproc ()
bool attach_preproc (char *target, bool do_force=false)
virtual const char * get_name () const
- 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)
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)

Protected Member Functions

bool preprocess_features (CFeatures *trainfeat, CFeatures *testfeat, bool force)
bool preproc_all_features (CFeatures *f, bool force)
- 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)

Protected Attributes

CListpreprocs
CSGInterface * ui

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters

Constructor & Destructor Documentation

constructor

Definition at line 29 of file GUIPreprocessor.h.

CGUIPreprocessor ( CSGInterface *  interface)

constructor

Parameters
interface

Definition at line 39 of file GUIPreprocessor.cpp.

destructor

Definition at line 45 of file GUIPreprocessor.cpp.

Member Function Documentation

bool add_preproc ( CPreprocessor preproc)

add new preproc to list

Definition at line 107 of file GUIPreprocessor.cpp.

bool attach_preproc ( char *  target,
bool  do_force = false 
)

attach preprocessor to TRAIN/TEST feature obj. it will also preprocess train/test data when a feature matrix is available

when successful create new preproc list

Definition at line 129 of file GUIPreprocessor.cpp.

bool clean_preproc ( )

clean all preprocs from list

Definition at line 112 of file GUIPreprocessor.cpp.

CPreprocessor * create_generic ( EPreprocessorType  type)

create generic Preprocessor

Definition at line 79 of file GUIPreprocessor.cpp.

CPreprocessor * create_pca ( bool  do_whitening,
float64_t  threshold 
)

create preproc PCA

Definition at line 62 of file GUIPreprocessor.cpp.

CPreprocessor * create_prunevarsubmean ( bool  divide_by_std = false)

create preproc PruneVarSubMean

Definition at line 50 of file GUIPreprocessor.cpp.

bool del_preproc ( )

delete last preproc in list

Definition at line 119 of file GUIPreprocessor.cpp.

virtual const char* get_name ( ) const
virtual
Returns
object name

Implements CSGObject.

Definition at line 58 of file GUIPreprocessor.h.

bool preproc_all_features ( CFeatures f,
bool  force 
)
protected

preproc all features

Parameters
f
force

Definition at line 277 of file GUIPreprocessor.cpp.

bool preprocess_features ( CFeatures trainfeat,
CFeatures testfeat,
bool  force 
)
protected

preprocess features

Parameters
trainfeat
testfeat
force

Definition at line 217 of file GUIPreprocessor.cpp.

Member Data Documentation

CList* preprocs
protected

preprocs

Definition at line 74 of file GUIPreprocessor.h.

CSGInterface* ui
protected

ui

Definition at line 76 of file GUIPreprocessor.h.


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

SHOGUN Machine Learning Toolbox - Documentation