SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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_ */

SHOGUN Machine Learning Toolbox - Documentation