SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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 
16 #include <shogun/lib/config.h>
20 #include <shogun/labels/Labels.h>
21 
22 namespace shogun
23 {
24 
25 class CInference;
26 class CFeatures;
27 class CLabels;
28 
33 {
34 public:
37 
40 
46 
48 
54  virtual CRegressionLabels* apply_regression(CFeatures* data=NULL);
55 
61 
67 
73  {
75  }
76 
81  virtual const char* get_name() const { return "GaussianProcessRegression"; }
82 
83 protected:
90  virtual bool train_machine(CFeatures* data=NULL);
91 
98  virtual bool is_label_valid(CLabels *lab) const
99  {
100  return lab->get_label_type()==LT_REGRESSION;
101  }
102 };
103 }
104 #endif /* _GAUSSIANPROCESSREGRESSION_H_ */
EMachineType
Definition: Machine.h:33
virtual ELabelType get_label_type() const =0
Real Labels are real-valued labels.
Class GaussianProcessRegression implements regression based on Gaussian Processes.
A base class for Gaussian Processes.
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
real valued labels (e.g. for regression, classifier outputs)
Definition: LabelTypes.h:22
virtual bool train_machine(CFeatures *data=NULL)
virtual bool is_label_valid(CLabels *lab) const
SGVector< float64_t > get_variance_vector(CFeatures *data)
virtual const char * get_name() const
SGVector< float64_t > get_mean_vector(CFeatures *data)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The Inference Method base class.
Definition: Inference.h:81
virtual CRegressionLabels * apply_regression(CFeatures *data=NULL)
The class Features is the base class of all feature objects.
Definition: Features.h:68

SHOGUN Machine Learning Toolbox - Documentation