SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
DimensionReductionPreprocessor.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) 2011 Sergey Lisitsyn
8  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
9  */
10 
11 #ifndef DIMENSIONREDUCTIONPREPROCESSOR_H_
12 #define DIMENSIONREDUCTIONPREPROCESSOR_H_
13 
14 #include <shogun/lib/config.h>
15 
20 
21 namespace shogun
22 {
23 
24 class CFeatures;
25 class CDistance;
26 class CKernel;
27 
33 {
34 public:
35 
38 
45 
48 
53  virtual bool init(CFeatures* data);
54 
59  virtual void cleanup();
60 
65 
70  {
71  return vector;
72  }
73 
75  virtual const char* get_name() const { return "DimensionReductionPreprocessor"; };
76 
78  virtual EPreprocessorType get_type() const;
79 
83  void set_target_dim(int32_t dim);
84 
88  int32_t get_target_dim() const;
89 
94 
98  CDistance* get_distance() const;
99 
103  void set_kernel(CKernel* kernel);
104 
108  CKernel* get_kernel() const;
109 
110 private:
111 
113  void initialize_parameters();
114 
115 protected:
116 
118  int32_t m_target_dim;
119 
122 
125 
128 };
129 }
130 
131 #endif /* DIMENSIONREDUCTIONPREPROCESSOR_H_ */
float distance(CJLCoverTreePoint p1, CJLCoverTreePoint p2, float64_t upper_bound)
the class DimensionReductionPreprocessor, a base class for preprocessors used to lower the dimensiona...
EPreprocessorType
Definition: Preprocessor.h:32
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:81
class EmbeddingConverter (part of the Efficient Dimensionality Reduction Toolkit) used to construct e...
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...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
The Kernel base class.
Definition: Kernel.h:158
virtual SGMatrix< float64_t > apply_to_feature_matrix(CFeatures *features)

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