SHOGUN
v3.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
classifier
GaussianProcessBinaryClassification.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) 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
Machine Learning Toolbox - Documentation