SHOGUN  3.2.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
RescaleFeatures.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) 20013 Viktor Gal
8  * Copyright (C) 2013 Viktor Gal
9  */
10 
11 #ifndef __RESCALEFEATURES_H__
12 #define __RESCALEFEATURES_H__
13 
15 
16 namespace shogun
17 {
28  class CRescaleFeatures : public CDensePreprocessor<float64_t>
29  {
30  public:
33 
35  virtual ~CRescaleFeatures();
36 
42  virtual bool init(CFeatures* features);
43 
47  virtual void cleanup();
48 
56 
61 
63  virtual const char* get_name() const { return "RescaleFeatures"; }
64 
66  virtual EPreprocessorType get_type() const { return P_RESCALEFEATURES; }
67 
68  private:
69  void register_parameters();
70 
71  protected:
78  };
79 }
80 
81 #endif /* __RESCALEFEATURES_H__ */
virtual bool init(CFeatures *features)
EPreprocessorType
Definition: Preprocessor.h:30
virtual SGVector< float64_t > apply_to_feature_vector(SGVector< float64_t > vector)
Template class DensePreprocessor, base class for preprocessors (cf. CPreprocessor) that apply to CDen...
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)
virtual const char * get_name() const
virtual EPreprocessorType get_type() const
SGVector< float64_t > m_min
Preprocessor RescaleFeautres is rescaling the range of features to make the features independent of e...
SGVector< float64_t > m_range
The class Features is the base class of all feature objects.
Definition: Features.h:62

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