SHOGUN  3.2.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
LabelsFactory.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 Evgeniy Andreev (gsomix)
8  */
9 
10 #ifndef _LABELS_FACTORY__H__
11 #define _LABELS_FACTORY__H__
12 
13 #include <shogun/base/SGObject.h>
14 
15 namespace shogun
16 {
17  class SGObject;
18  class CLabels;
19  class CBinaryLabels;
20  class CLatentLabels;
21  class CMulticlassLabels;
22  class CRegressionLabels;
23  class CStructuredLabels;
24  class CMulticlassMultipleOutputLabels;
25  class CMulticlassSOLabels;
26 
29 class CLabelsFactory : public CSGObject
30 {
31 public:
36  static CBinaryLabels* to_binary(CLabels* base_labels);
37 
42  static CLatentLabels* to_latent(CLabels* base_labels);
43 
48  static CMulticlassLabels* to_multiclass(CLabels* base_labels);
49 
54  static CRegressionLabels* to_regression(CLabels* base_labels);
55 
60  static CStructuredLabels* to_structured(CLabels* base_labels);
61 
67 
73 
75  virtual const char* get_name() const { return "LabelsFactory"; }
76 };
77 
78 }
79 
80 #endif /* _LABELS_FACTORY__H__ */

SHOGUN 机器学习工具包 - 项目文档