SHOGUN  v3.2.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
GaussianProcessBinaryClassification.h
浏览该文件的文档.
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 
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_ */
Class GaussianProcessBinaryClassification implements binary classification based on Gaussian Processe...
EMachineType
Definition: Machine.h:33
virtual ELabelType get_label_type() const =0
binary labels +1/-1
Definition: LabelTypes.h:14
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
virtual CBinaryLabels * apply_binary(CFeatures *data=NULL)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:16
The class Features is the base class of all feature objects.
Definition: Features.h:62
Binary Labels for binary classification.
Definition: BinaryLabels.h:36

SHOGUN Machine Learning Toolbox - Documentation