SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianProcessBinaryClassification.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 _GAUSSIANPROCESSBINARYCLASSIFICATION_H_
11 #define _GAUSSIANPROCESSBINARYCLASSIFICATION_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #ifdef HAVE_EIGEN3
16 
18 
19 namespace shogun
20 {
21 
26 {
27 public:
30 
33 
39 
41 
48  virtual CBinaryLabels* apply_binary(CFeatures* data=NULL);
49 
57 
65 
72  SGVector<float64_t> get_probabilities(CFeatures* data);
73 
79  {
81  }
82 
87  virtual const char* get_name() const
88  {
89  return "GaussianProcessBinaryClassification";
90  }
91 
92 protected:
99  virtual bool train_machine(CFeatures* data=NULL);
100 
107  virtual bool is_label_valid(CLabels *lab) const
108  {
109  return (lab->get_label_type()==LT_BINARY);
110  }
111 };
112 }
113 #endif /* HAVE_EIGEN3 */
114 #endif /* _GAUSSIANPROCESSCLASSIFICATION_H_ */

SHOGUN Machine Learning Toolbox - Documentation