/usr/include/shogun/converter/KernelLocallyLinearEmbedding.h is in libshogun-dev 3.2.0-7.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2011-2013 Sergey Lisitsyn
* Copyright (C) 2011-2013 Berlin Institute of Technology and Max-Planck-Society
*/
#ifndef KERNELLOCALLYLINEAREMBEDDING_H_
#define KERNELLOCALLYLINEAREMBEDDING_H_
#include <shogun/lib/config.h>
#ifdef HAVE_EIGEN3
#include <shogun/converter/LocallyLinearEmbedding.h>
#include <shogun/features/Features.h>
#include <shogun/distance/Distance.h>
#include <shogun/kernel/Kernel.h>
namespace shogun
{
class CFeatures;
class CKernel;
/** @brief class KernelLocallyLinearEmbedding used to construct embeddings
* of data using kernel formulation of Locally Linear Embedding algorithm as
* described in
*
* Decoste, D. (2001).
* Visualizing Mercer Kernel Feature Spaces Via Kernelized Locally-Linear Embeddings.
* The 8th International Conference on Neural Information Processing ICONIP2001
*
* It is optimized with the alignment formulation as described in
*
* Zhao, D. (2006).
* Formulating LLE using alignment technique.
* Pattern Recognition, 39(11), 2233-2235.
* Retrieved from http://linkinghub.elsevier.com/retrieve/pii/S0031320306002160
*
* Uses the Tapkee library code.
*
*/
class CKernelLocallyLinearEmbedding: public CLocallyLinearEmbedding
{
public:
/** constructor */
CKernelLocallyLinearEmbedding();
/** constructor
* @param kernel kernel to be used
*/
CKernelLocallyLinearEmbedding(CKernel* kernel);
/** destructor */
virtual ~CKernelLocallyLinearEmbedding();
/** apply */
virtual CFeatures* apply(CFeatures* features);
/** embed kernel (kernel should be inited)
* @param kernel kernel to construct embed
*/
CDenseFeatures<float64_t>* embed_kernel(CKernel* kernel);
/** get name */
virtual const char* get_name() const;
};
}
#endif /* HAVE_EIGEN3 */
#endif /* KERNELLOCALLYLINEAREMBEDDING_H_ */
|