SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SingleLaplacianInferenceMethod.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  * Copyright (C) 2012 Jacob Walker
9  * Copyright (C) 2013 Roman Votyakov
10  *
11  * Code adapted from Gaussian Process Machine Learning Toolbox
12  * http://www.gaussianprocess.org/gpml/code/matlab/doc/
13  */
14 
15 #ifndef CSINGLELAPLACIANINFERENCEMETHOD_H_
16 #define CSINGLELAPLACIANINFERENCEMETHOD_H_
17 
18 #include <shogun/lib/config.h>
19 
20 #ifdef HAVE_EIGEN3
21 
23 
24 namespace shogun
25 {
26 
44 {
45 public:
48 
58  CMeanFunction* mean, CLabels* labels, CLikelihoodModel* model);
59 
61 
66  virtual const char* get_name() const { return "SingleLaplacianInferenceMethod"; }
67 
73 
80 
93 
98  virtual bool supports_regression() const
99  {
100  check_members();
101  return m_model->supports_regression();
102  }
103 
108  virtual bool supports_binary() const
109  {
110  check_members();
111  return m_model->supports_binary();
112  }
113 
126 
128  virtual void update();
129 
143 protected:
144 
145  virtual void update_init();
146 
148  virtual void update_alpha();
149 
151  virtual void update_chol();
152 
154  virtual void update_approx_cov();
155 
159  virtual void update_deriv();
160 
169  const TParameter* param);
170 
179  const TParameter* param);
180 
189  const TParameter* param);
190 
199  const TParameter* param);
200 private:
201  void init();
202 
203 protected:
206 
209 
212 
214 
216 
218 
220 };
221 }
222 #endif /* HAVE_EIGEN3 */
223 #endif /* CSINGLELAPLACIANINFERENCEMETHOD_H_ */
The Inference Method base class.
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
parameter struct
The Laplace approximation inference method base class.
An abstract class of the mean function.
Definition: MeanFunction.h:49
virtual SGVector< float64_t > get_derivative_wrt_mean(const TParameter *param)
static CSingleLaplacianInferenceMethod * obtain_from_generic(CInferenceMethod *inference)
The SingleLaplace approximation inference method class for regression and binary Classification.
virtual SGVector< float64_t > get_derivative_wrt_inference_method(const TParameter *param)
virtual SGVector< float64_t > get_derivative_wrt_likelihood_model(const TParameter *param)
double float64_t
Definition: common.h:50
virtual bool supports_regression() const
virtual bool supports_binary() const
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
virtual SGVector< float64_t > get_derivative_wrt_kernel(const TParameter *param)
virtual void check_members() const
The Kernel base class.
Definition: Kernel.h:158
The Likelihood model base class.
CLikelihoodModel * m_model

SHOGUN Machine Learning Toolbox - Documentation