SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
regression
GaussianProcessRegression.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) 2013 Roman Votyakov
8
* Copyright (C) 2012 Jacob Walker
9
* Copyright (C) 2013 Roman Votyakov
10
*/
11
12
#ifndef _GAUSSIANPROCESSREGRESSION_H_
13
#define _GAUSSIANPROCESSREGRESSION_H_
14
15
#include <
shogun/lib/config.h
>
16
17
#ifdef HAVE_EIGEN3
18
19
#include <
shogun/machine/GaussianProcessMachine.h
>
20
#include <
shogun/machine/gp/InferenceMethod.h
>
21
#include <
shogun/features/Features.h
>
22
#include <
shogun/labels/Labels.h
>
23
24
namespace
shogun
25
{
26
27
class
CInferenceMethod;
28
class
CFeatures;
29
class
CLabels;
30
34
class
CGaussianProcessRegression
:
public
CGaussianProcessMachine
35
{
36
public
:
38
MACHINE_PROBLEM_TYPE
(
PT_REGRESSION
);
39
41
CGaussianProcessRegression
();
42
47
CGaussianProcessRegression
(
CInferenceMethod
* method);
48
49
virtual
~CGaussianProcessRegression
();
50
56
virtual
CRegressionLabels
*
apply_regression
(
CFeatures
* data=NULL);
57
62
SGVector<float64_t>
get_mean_vector
(
CFeatures
* data);
63
68
SGVector<float64_t>
get_variance_vector
(
CFeatures
* data);
69
74
virtual
EMachineType
get_classifier_type
()
75
{
76
return
CT_GAUSSIANPROCESSREGRESSION
;
77
}
78
83
virtual
const
char
*
get_name
()
const
{
return
"GaussianProcessRegression"
; }
84
85
protected
:
92
virtual
bool
train_machine
(
CFeatures
* data=NULL);
93
100
virtual
bool
is_label_valid
(
CLabels
*lab)
const
101
{
102
return
lab->
get_label_type
()==
LT_REGRESSION
;
103
}
104
};
105
}
106
#endif
/* HAVE_EIGEN3 */
107
#endif
/* _GAUSSIANPROCESSREGRESSION_H_ */
SHOGUN
机器学习工具包 - 项目文档