SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
ECOCEncoder.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) 2012 Chiyuan Zhang
8  * Copyright (C) 2012 Chiyuan Zhang
9  */
10 
11 #ifndef ECOCENCODER_H__
12 #define ECOCENCODER_H__
13 
14 #include <shogun/lib/config.h>
15 
16 #include <shogun/base/Parameter.h>
17 #include <shogun/base/SGObject.h>
18 #include <shogun/lib/DataType.h>
19 #include <shogun/lib/SGMatrix.h>
20 
21 namespace shogun
22 {
23 
38 class CECOCEncoder: public CSGObject
39 {
40 public:
43 
45  virtual ~CECOCEncoder() {}
46 
48  virtual const char* get_name() const
49  {
50  return "ECOCEncoder";
51  }
52 
56  virtual SGMatrix<int32_t> create_codebook(int32_t num_classes)=0;
57 };
58 
59 }
60 
61 #endif /* end of include guard: ECOCENCODER_H__ */
ECOCEncoder produce an ECOC codebook.
Definition: ECOCEncoder.h:38
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:115
virtual SGMatrix< int32_t > create_codebook(int32_t num_classes)=0
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual const char * get_name() const
Definition: ECOCEncoder.h:48
virtual ~CECOCEncoder()
Definition: ECOCEncoder.h:45

SHOGUN Machine Learning Toolbox - Documentation