SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StochasticProximityEmbedding.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) 2012-2013 Fernando José Iglesias García
8  * Copyright (C) 2012-2013 Fernando José Iglesias García
9  */
10 
11 #ifndef STOCHASTICPROXIMITYEMBEDDING_H_
12 #define STOCHASTICPROXIMITYEMBEDDING_H_
13 #include <shogun/lib/config.h>
17 
18 namespace shogun
19 {
20 
23 {
26 };
27 
63 {
64 
65  public:
66 
69 
72 
78  virtual CFeatures* apply(CFeatures* features);
79 
84  void set_k(int32_t k);
85 
90  int32_t get_k() const;
91 
96  void set_strategy(ESPEStrategy strategy);
97 
102  ESPEStrategy get_strategy() const;
103 
108  void set_tolerance(float32_t tolerance);
109 
114  int32_t get_tolerance() const;
115 
120  void set_nupdates(int32_t nupdates);
121 
126  int32_t get_nupdates() const;
127 
132  void set_max_iteration(const int32_t max_iteration);
133 
138  int32_t get_max_iteration() const;
139 
141  virtual const char* get_name() const;
142 
143  private:
144 
146  void init();
147 
152  virtual CDenseFeatures< float64_t >* embed_distance(CDistance* distance);
153 
154  private:
155 
157  ESPEStrategy m_strategy;
158 
160  int32_t m_k;
161 
163  float32_t m_tolerance;
164 
166  int32_t m_nupdates;
167 
169  int32_t m_max_iteration;
170 
171 };
172 
173 } /* namespace shogun */
174 
175 
176 #endif /* STOCHASTICPROXIMITYEMBEDDING_H_ */
float distance(CJLCoverTreePoint p1, CJLCoverTreePoint p2, float64_t upper_bound)
Class Distance, a base class for all the distances used in the Shogun toolbox.
Definition: Distance.h:87
virtual CFeatures * apply(CFeatures *features)
class EmbeddingConverter (part of the Efficient Dimensionality Reduction Toolkit) used to construct e...
class StochasticProximityEmbedding used to construct embeddings of data using the Stochastic Proximit...
void set_max_iteration(const int32_t max_iteration)
float float32_t
Definition: common.h:49
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

SHOGUN Machine Learning Toolbox - Documentation