SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianProcessRegression.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 
12 #ifndef _GAUSSIANPROCESSREGRESSION_H_
13 #define _GAUSSIANPROCESSREGRESSION_H_
14 
15 #include <shogun/lib/config.h>
16 
17 #ifdef HAVE_EIGEN3
18 
22 #include <shogun/labels/Labels.h>
23 
24 namespace shogun
25 {
26 
27 class CInferenceMethod;
28 class CFeatures;
29 class CLabels;
30 
35 {
36 public:
39 
42 
48 
50 
56  virtual CRegressionLabels* apply_regression(CFeatures* data=NULL);
57 
63 
69 
75  {
77  }
78 
83  virtual const char* get_name() const { return "GaussianProcessRegression"; }
84 
85 protected:
92  virtual bool train_machine(CFeatures* data=NULL);
93 
100  virtual bool is_label_valid(CLabels *lab) const
101  {
102  return lab->get_label_type()==LT_REGRESSION;
103  }
104 };
105 }
106 #endif /* HAVE_EIGEN3 */
107 #endif /* _GAUSSIANPROCESSREGRESSION_H_ */

SHOGUN Machine Learning Toolbox - Documentation