SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
LocalityPreservingProjections.cpp
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-2013 Sergey Lisitsyn
8  * Copyright (C) 2011-2013 Berlin Institute of Technology and Max-Planck-Society
9  */
10 
12 #include <shogun/io/SGIO.h>
14 #include <shogun/lib/tapkee/tapkee_shogun.hpp>
15 
16 using namespace shogun;
17 
20 {
21 }
22 
24 {
25 }
26 
28 {
29  return "LocalityPreservingProjections";
30 };
31 
33 {
34  TAPKEE_PARAMETERS_FOR_SHOGUN parameters;
35  m_distance->init(features,features);
36  parameters.n_neighbors = m_k;
37  parameters.gaussian_kernel_width = m_tau;
38  parameters.method = SHOGUN_LOCALITY_PRESERVING_PROJECTIONS;
39  parameters.target_dimension = m_target_dim;
40  parameters.distance = m_distance;
41  parameters.features = (CDotFeatures*)features;
42  CDenseFeatures<float64_t>* embedding = tapkee_embed(parameters);
43  return embedding;
44 }
45 
Features that support dot products among other operations.
Definition: DotFeatures.h:44
virtual CFeatures * apply(CFeatures *features)
class LaplacianEigenmaps used to construct embeddings of data using Laplacian Eigenmaps algorithm as ...
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
virtual bool init(CFeatures *lhs, CFeatures *rhs)
Definition: Distance.cpp:78

SHOGUN Machine Learning Toolbox - Documentation