SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
GUIPreprocessor.h
浏览该文件的文档.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2008 Soeren Sonnenburg
8  * Written (W) 1999-2008 Gunnar Raetsch
9  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
10  */
11 
12 #ifndef __GUIPREPROC_H__
13 #define __GUIPREPROC_H__
14 
15 #include <shogun/lib/config.h>
16 #include <shogun/lib/List.h>
17 #include <shogun/base/SGObject.h>
19 
20 namespace shogun
21 {
22 class CSGInterface;
23 
26 {
27  public:
33  CGUIPreprocessor(CSGInterface* interface);
36 
40  CPreprocessor* create_prunevarsubmean(bool divide_by_std=false);
42  CPreprocessor* create_pca(bool do_whitening, float64_t threshold);
43 
45  bool add_preproc(CPreprocessor* preproc);
47  bool del_preproc();
49  bool clean_preproc();
50 
55  bool attach_preproc(char* target, bool do_force=false);
56 
58  virtual const char* get_name() const { return "GUIPreprocessor"; }
59 
60  protected:
66  bool preprocess_features(CFeatures* trainfeat, CFeatures* testfeat, bool force);
71  bool preproc_all_features(CFeatures* f, bool force);
72 
76  CSGInterface* ui;
77 };
78 }
79 #endif
CSGInterface * interface
Definition: SGInterface.cpp:45
EPreprocessorType
Definition: Preprocessor.h:32
CPreprocessor * create_prunevarsubmean(bool divide_by_std=false)
virtual const char * get_name() const
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
CPreprocessor * create_generic(EPreprocessorType type)
double float64_t
Definition: common.h:50
bool preproc_all_features(CFeatures *f, bool force)
bool preprocess_features(CFeatures *trainfeat, CFeatures *testfeat, bool force)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
bool add_preproc(CPreprocessor *preproc)
The class Features is the base class of all feature objects.
Definition: Features.h:68
bool attach_preproc(char *target, bool do_force=false)
Class Preprocessor defines a preprocessor interface.
Definition: Preprocessor.h:75
CPreprocessor * create_pca(bool do_whitening, float64_t threshold)
Class List implements a doubly connected list for low-level-objects.
Definition: List.h:84

SHOGUN 机器学习工具包 - 项目文档