SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
converter
LocallyLinearEmbedding.h
浏览该文件的文档.
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
11
#ifndef LOCALLYLINEAREMBEDDING_H_
12
#define LOCALLYLINEAREMBEDDING_H_
13
#include <
shogun/lib/config.h
>
14
#ifdef HAVE_EIGEN3
15
#include <
shogun/converter/EmbeddingConverter.h
>
16
#include <
shogun/features/Features.h
>
17
#include <
shogun/features/DenseFeatures.h
>
18
#include <
shogun/distance/Distance.h
>
19
20
namespace
shogun
21
{
22
23
class
CFeatures;
24
class
CDistance;
25
47
class
CLocallyLinearEmbedding
:
public
CEmbeddingConverter
48
{
49
public
:
50
52
CLocallyLinearEmbedding
();
53
55
virtual
~CLocallyLinearEmbedding
();
56
60
virtual
CFeatures
*
apply
(
CFeatures
* features);
61
65
void
set_k
(int32_t k);
66
70
int32_t
get_k
()
const
;
71
75
void
set_reconstruction_shift
(
float64_t
reconstruction_shift);
76
80
float64_t
get_reconstruction_shift
()
const
;
81
85
void
set_nullspace_shift
(
float64_t
nullspace_shift);
86
90
float64_t
get_nullspace_shift
()
const
;
91
93
virtual
const
char
*
get_name
()
const
;
94
96
protected
:
97
99
void
init
();
100
102
protected
:
103
105
int32_t
m_k
;
106
108
float64_t
m_reconstruction_shift
;
109
111
float64_t
m_nullspace_shift
;
112
113
};
114
}
115
116
#endif
/* HAVE_EIGEN3 */
117
#endif
/* LOCALLYLINEAREMBEDDING_H_ */
SHOGUN
机器学习工具包 - 项目文档