SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DimensionReductionPreprocessor.h
Go to the documentation of this file.
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 protected:
111 
113  void init();
114 
115 protected:
116 
118  int32_t m_target_dim;
119 
122 
125 
128 };
129 }
130 
131 #endif /* DIMENSIONREDUCTIONPREPROCESSOR_H_ */

SHOGUN Machine Learning Toolbox - Documentation