SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
EmbeddingConverter.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 Sergey Lisitsyn
9  */
10 
11 #ifndef EMBEDDINGCONVERTER_H_
12 #define EMBEDDINGCONVERTER_H_
13 
14 #include <shogun/lib/config.h>
15 
20 #include <shogun/kernel/Kernel.h>
21 
22 namespace shogun
23 {
24 
25 class CFeatures;
26 class CDistance;
27 class CKernel;
28 
34 {
35 public:
36 
39 
41  virtual ~CEmbeddingConverter();
42 
47  virtual CFeatures* apply(CFeatures* features) = 0;
48 
54  virtual CDenseFeatures<float64_t>* embed(CFeatures* features);
55 
59  void set_target_dim(int32_t dim);
60 
64  int32_t get_target_dim() const;
65 
70 
74  CDistance* get_distance() const;
75 
79  void set_kernel(CKernel* kernel);
80 
84  CKernel* get_kernel() const;
85 
86  virtual const char* get_name() const { return "EmbeddingConverter"; };
87 
88 protected:
89 
91  void init();
92 
93 protected:
94 
96  int32_t m_target_dim;
97 
100 
103 };
104 }
105 
106 #endif /* DIMENSIONREDUCTIONPREPROCESSOR_H_ */
float distance(CJLCoverTreePoint p1, CJLCoverTreePoint p2, float64_t upper_bound)
class Converter used to convert data
Definition: Converter.h:26
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:81
virtual const char * get_name() const
class EmbeddingConverter (part of the Efficient Dimensionality Reduction Toolkit) used to construct e...
CDistance * get_distance() const
void set_kernel(CKernel *kernel)
void set_distance(CDistance *distance)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual CDenseFeatures< float64_t > * embed(CFeatures *features)
The class Features is the base class of all feature objects.
Definition: Features.h:68
The Kernel base class.
Definition: Kernel.h:158
virtual CFeatures * apply(CFeatures *features)=0

SHOGUN Machine Learning Toolbox - Documentation