SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
classifier
GaussianProcessBinaryClassification.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
*/
9
10
#ifndef _GAUSSIANPROCESSBINARYCLASSIFICATION_H_
11
#define _GAUSSIANPROCESSBINARYCLASSIFICATION_H_
12
13
#include <
shogun/lib/config.h
>
14
15
#ifdef HAVE_EIGEN3
16
17
#include <
shogun/machine/GaussianProcessMachine.h
>
18
19
namespace
shogun
20
{
21
25
class
CGaussianProcessBinaryClassification
:
public
CGaussianProcessMachine
26
{
27
public
:
29
MACHINE_PROBLEM_TYPE
(
PT_BINARY
);
30
32
CGaussianProcessBinaryClassification
();
33
38
CGaussianProcessBinaryClassification
(
CInferenceMethod
* method);
39
40
virtual
~CGaussianProcessBinaryClassification
();
41
48
virtual
CBinaryLabels
*
apply_binary
(
CFeatures
* data=NULL);
49
56
SGVector<float64_t>
get_mean_vector
(
CFeatures
* data);
57
64
SGVector<float64_t>
get_variance_vector
(
CFeatures
* data);
65
72
SGVector<float64_t>
get_probabilities
(
CFeatures
* data);
73
78
virtual
EMachineType
get_classifier_type
()
79
{
80
return
CT_GAUSSIANPROCESSBINARY
;
81
}
82
87
virtual
const
char
*
get_name
()
const
88
{
89
return
"GaussianProcessBinaryClassification"
;
90
}
91
92
protected
:
99
virtual
bool
train_machine
(
CFeatures
* data=NULL);
100
107
virtual
bool
is_label_valid
(
CLabels
*lab)
const
108
{
109
return
(lab->
get_label_type
()==
LT_BINARY
);
110
}
111
};
112
}
113
#endif
/* HAVE_EIGEN3 */
114
#endif
/* _GAUSSIANPROCESSCLASSIFICATION_H_ */
SHOGUN
机器学习工具包 - 项目文档