SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 
18 
19 namespace shogun
20 {
21 
29 {
30 public:
33 
34  virtual ~CLogitLikelihood();
35 
40  virtual const char* get_name() const { return "LogitLikelihood"; }
41 
57  SGVector<float64_t> s2, const CLabels* lab=NULL) const;
58 
74  SGVector<float64_t> s2, const CLabels* lab=NULL) const;
75 
80  virtual ELikelihoodModelType get_model_type() const { return LT_LOGIT; }
81 
94  SGVector<float64_t> func) const;
95 
107  const CLabels* lab, SGVector<float64_t> func, index_t i) const;
108 
126  SGVector<float64_t> s2, const CLabels* lab) const;
127 
143  SGVector<float64_t> s2, const CLabels* lab, index_t i) const;
144 
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_ */
virtual SGVector< float64_t > get_predictive_means(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab=NULL) const
ELikelihoodModelType
virtual SGVector< float64_t > get_predictive_variances(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab=NULL) const
Class that models Logit likelihood.
int32_t index_t
Definition: common.h:62
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
virtual float64_t get_second_moment(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab, index_t i) const
virtual SGVector< float64_t > get_log_probability_derivative_f(const CLabels *lab, SGVector< float64_t > func, index_t i) const
virtual SGVector< float64_t > get_log_zeroth_moments(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab) const
virtual bool supports_binary() const
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual const char * get_name() const
virtual float64_t get_first_moment(SGVector< float64_t > mu, SGVector< float64_t > s2, const CLabels *lab, index_t i) const
virtual ELikelihoodModelType get_model_type() const
virtual SGVector< float64_t > get_log_probability_f(const CLabels *lab, SGVector< float64_t > func) const
The Likelihood model base class.

SHOGUN Machine Learning Toolbox - Documentation