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
machine
gp
ProbitLikelihood.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 _PROBITLIKELIHOOD_H_
11
#define _PROBITLIKELIHOOD_H_
12
13
#include <
shogun/lib/config.h
>
14
15
#ifdef HAVE_EIGEN3
16
17
#include <
shogun/machine/gp/LikelihoodModel.h
>
18
19
namespace
shogun
20
{
21
31
class
CProbitLikelihood
:
public
CLikelihoodModel
32
{
33
public
:
35
CProbitLikelihood
();
36
37
virtual
~CProbitLikelihood
();
38
43
virtual
const
char
*
get_name
()
const
{
return
"ProbitLikelihood"
; }
44
59
virtual
SGVector<float64_t>
get_predictive_means
(
SGVector<float64_t>
mu,
60
SGVector<float64_t>
s2,
const
CLabels
* lab=NULL)
const
;
61
76
virtual
SGVector<float64_t>
get_predictive_variances
(
SGVector<float64_t>
mu,
77
SGVector<float64_t>
s2,
const
CLabels
* lab=NULL)
const
;
78
83
virtual
ELikelihoodModelType
get_model_type
()
const
{
return
LT_PROBIT
; }
84
96
virtual
SGVector<float64_t>
get_log_probability_f
(
const
CLabels
* lab,
97
SGVector<float64_t>
func)
const
;
98
109
virtual
SGVector<float64_t>
get_log_probability_derivative_f
(
110
const
CLabels
* lab,
SGVector<float64_t>
func,
index_t
i)
const
;
111
128
virtual
SGVector<float64_t>
get_log_zeroth_moments
(
SGVector<float64_t>
mu,
129
SGVector<float64_t>
s2,
const
CLabels
* lab)
const
;
130
145
virtual
float64_t
get_first_moment
(
SGVector<float64_t>
mu,
146
SGVector<float64_t>
s2,
const
CLabels
* lab,
index_t
i)
const
;
147
162
virtual
float64_t
get_second_moment
(
SGVector<float64_t>
mu,
163
SGVector<float64_t>
s2,
const
CLabels
* lab,
index_t
i)
const
;
164
169
virtual
bool
supports_binary
()
const
{
return
true
; }
170
171
};
172
}
173
#endif
/* HAVE_EIGEN3 */
174
#endif
/* _PROBITLIKELIHOOD_H_ */
SHOGUN
Machine Learning Toolbox - Documentation