SHOGUN
v2.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
converter
KernelLocallyLinearEmbedding.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 Berlin Institute of Technology and Max-Planck-Society
9
*/
10
11
#ifndef KERNELLOCALLYLINEAREMBEDDING_H_
12
#define KERNELLOCALLYLINEAREMBEDDING_H_
13
#include <
shogun/lib/config.h
>
14
#ifdef HAVE_LAPACK
15
#include <
shogun/converter/LocallyLinearEmbedding.h
>
16
#include <
shogun/features/Features.h
>
17
#include <
shogun/distance/Distance.h
>
18
#include <
shogun/kernel/Kernel.h
>
19
#include <
shogun/lib/CoverTree.h
>
20
21
namespace
shogun
22
{
23
24
class
CFeatures;
25
class
CKernel;
26
44
class
CKernelLocallyLinearEmbedding
:
public
CLocallyLinearEmbedding
45
{
46
public
:
47
49
CKernelLocallyLinearEmbedding
();
50
54
CKernelLocallyLinearEmbedding
(
CKernel
* kernel);
55
57
virtual
~CKernelLocallyLinearEmbedding
();
58
60
virtual
CFeatures
*
apply
(
CFeatures
* features);
61
65
CDenseFeatures<float64_t>
*
embed_kernel
(
CKernel
* kernel);
66
68
virtual
const
char
*
get_name
()
const
;
69
71
protected
:
72
74
virtual
SGMatrix<float64_t>
construct_weight_matrix
(
SGMatrix<float64_t>
kernel_matrix,
75
SGMatrix<int32_t>
neighborhood_matrix);
76
83
virtual
SGMatrix<int32_t>
get_neighborhood_matrix
(
SGMatrix<float64_t>
kernel_matrix, int32_t k);
84
85
87
protected
:
88
92
static
void
*
run_linearreconstruction_thread
(
void
* p);
93
94
};
95
}
96
97
#endif
/* HAVE_LAPACK */
98
#endif
/* KERNELLOCALLYLINEAREMBEDDING_H_ */
SHOGUN
Machine Learning Toolbox - Documentation