SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LinearLocalTangentSpaceAlignment.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 Sergey Lisitsyn
9  */
10 
12 #ifdef HAVE_EIGEN3
13 #include <shogun/io/SGIO.h>
15 #include <shogun/lib/tapkee/tapkee_shogun.hpp>
16 
17 using namespace shogun;
18 
21 {
22 }
23 
25 {
26 }
27 
29 {
30  return "LinearLocalTangentSpaceAlignment";
31 }
32 
34 {
35  CKernel* kernel = new CLinearKernel((CDotFeatures*)features,(CDotFeatures*)features);
36  TAPKEE_PARAMETERS_FOR_SHOGUN parameters;
37  parameters.n_neighbors = m_k;
38  parameters.eigenshift = m_nullspace_shift;
39  parameters.method = SHOGUN_LINEAR_LOCAL_TANGENT_SPACE_ALIGNMENT;
40  parameters.target_dimension = m_target_dim;
41  parameters.kernel = kernel;
42  parameters.features = (CDotFeatures*)features;
43  CDenseFeatures<float64_t>* embedding = tapkee_embed(parameters);
44  SG_UNREF(kernel);
45  return embedding;
46 }
47 
48 #endif /* HAVE_EIGEN3 */

SHOGUN Machine Learning Toolbox - Documentation