SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
features
LatentFeatures.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) 2012 Viktor Gal
8
* Copyright (C) 2012 Viktor Gal
9
*/
10
11
#ifndef __LATENTFEATURES_H__
12
#define __LATENTFEATURES_H__
13
14
#include <
shogun/features/Features.h
>
15
#include <
shogun/lib/Data.h
>
16
17
namespace
shogun
18
{
24
class
CLatentFeatures
:
public
CFeatures
25
{
26
public
:
28
CLatentFeatures
();
29
34
CLatentFeatures
(int32_t num_samples);
35
36
virtual
~CLatentFeatures
();
37
42
virtual
CFeatures
*
duplicate
()
const
;
43
48
virtual
EFeatureType
get_feature_type
()
const
;
49
54
virtual
EFeatureClass
get_feature_class
()
const
;
55
60
virtual
int32_t
get_num_vectors
()
const
;
61
66
virtual
const
char
*
get_name
()
const
{
return
"LatentFeatures"
; }
67
72
bool
add_sample
(
CData
* example);
73
79
CData
*
get_sample
(
index_t
idx);
80
85
static
CLatentFeatures
*
obtain_from_generic
(
CFeatures
* base_feats);
86
protected
:
88
CDynamicObjectArray
*
m_samples
;
89
90
private
:
92
void
init();
93
};
94
}
95
96
#endif
/* __LATENTFEATURES_H__ */
97
SHOGUN
机器学习工具包 - 项目文档