SHOGUN  v3.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianProcessMachine.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 _GAUSSIANPROCESSMACHINE_H_
11 #define _GAUSSIANPROCESSMACHINE_H_
12 
13 #include <shogun/lib/config.h>
14 #include <shogun/machine/Machine.h>
16 
17 #ifdef HAVE_EIGEN3
18 
19 namespace shogun
20 {
21 
34 {
35 public:
38 
44 
45  virtual ~CGaussianProcessMachine();
46 
51  virtual const char* get_name() const { return "GaussianProcessMachine"; }
52 
62 
72 
78  {
80  return m_method;
81  }
82 
88  {
89  SG_REF(method);
91  m_method=method;
92  }
93 
98  virtual void set_labels(CLabels* lab)
99  {
101  m_method->set_labels(lab);
102  }
103 
109  virtual void store_model_features() { }
110 
111 private:
112  void init();
113 
114 protected:
117 };
118 }
119 #endif /* HAVE_EIGEN3 */
120 #endif /* _GAUSSIANPROCESSMACHINE_H_ */
virtual void set_labels(CLabels *lab)
The Inference Method base class.
A base class for Gaussian Processes.
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:35
SGVector< float64_t > get_posterior_variances(CFeatures *data)
SGVector< float64_t > get_posterior_means(CFeatures *data)
void set_inference_method(CInferenceMethod *method)
#define SG_REF(x)
Definition: SGObject.h:53
virtual void set_labels(CLabels *lab)
A generic learning machine interface.
Definition: Machine.h:138
CInferenceMethod * get_inference_method() const
#define SG_UNREF(x)
Definition: SGObject.h:54
The class Features is the base class of all feature objects.
Definition: Features.h:62
virtual void set_labels(CLabels *lab)
Definition: Machine.cpp:75
virtual const char * get_name() const

SHOGUN Machine Learning Toolbox - Documentation