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
LogitLikelihood.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 _LOGITLIKELIHOOD_H_
11
#define _LOGITLIKELIHOOD_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
28
class
CLogitLikelihood
:
public
CLikelihoodModel
29
{
30
public
:
32
CLogitLikelihood
();
33
34
virtual
~CLogitLikelihood
();
35
40
virtual
const
char
*
get_name
()
const
{
return
"LogitLikelihood"
; }
41
56
virtual
SGVector<float64_t>
get_predictive_means
(
SGVector<float64_t>
mu,
57
SGVector<float64_t>
s2,
const
CLabels
* lab=NULL)
const
;
58
73
virtual
SGVector<float64_t>
get_predictive_variances
(
SGVector<float64_t>
mu,
74
SGVector<float64_t>
s2,
const
CLabels
* lab=NULL)
const
;
75
80
virtual
ELikelihoodModelType
get_model_type
()
const
{
return
LT_LOGIT
; }
81
93
virtual
SGVector<float64_t>
get_log_probability_f
(
const
CLabels
* lab,
94
SGVector<float64_t>
func)
const
;
95
106
virtual
SGVector<float64_t>
get_log_probability_derivative_f
(
107
const
CLabels
* lab,
SGVector<float64_t>
func,
index_t
i)
const
;
108
125
virtual
SGVector<float64_t>
get_log_zeroth_moments
(
SGVector<float64_t>
mu,
126
SGVector<float64_t>
s2,
const
CLabels
* lab)
const
;
127
142
virtual
float64_t
get_first_moment
(
SGVector<float64_t>
mu,
143
SGVector<float64_t>
s2,
const
CLabels
* lab,
index_t
i)
const
;
144
159
virtual
float64_t
get_second_moment
(
SGVector<float64_t>
mu,
160
SGVector<float64_t>
s2,
const
CLabels
* lab,
index_t
i)
const
;
161
166
virtual
bool
supports_binary
()
const
{
return
true
; }
167
};
168
}
169
#endif
/* HAVE_EIGEN3 */
170
#endif
/* _LOGITLIKELIHOOD_H_ */
SHOGUN
Machine Learning Toolbox - Documentation