ECOCEncoder.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2012 Chiyuan Zhang
00008  * Copyright (C) 2012 Chiyuan Zhang
00009  */
00010 
00011 #ifndef ECOCENCODER_H__
00012 #define ECOCENCODER_H__
00013 
00014 #include <shogun/base/Parameter.h>
00015 #include <shogun/base/SGObject.h>
00016 #include <shogun/lib/DataType.h>
00017 
00018 namespace shogun
00019 {
00020 
00035 class CECOCEncoder: public CSGObject
00036 {
00037 public:
00039     CECOCEncoder() {}
00040 
00042     virtual ~CECOCEncoder() {}
00043 
00045     virtual const char* get_name() const
00046     {
00047         return "ECOCEncoder";
00048     }
00049 
00053     virtual SGMatrix<int32_t> create_codebook(int32_t num_classes)=0;
00054 };
00055 
00056 }
00057 
00058 #endif /* end of include guard: ECOCENCODER_H__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation