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 ECOCOVRENCODER_H__ 00012 #define ECOCOVRENCODER_H__ 00013 00014 #include <shogun/multiclass/ecoc/ECOCEncoder.h> 00015 00016 namespace shogun 00017 { 00018 00020 class CECOCOVREncoder: public CECOCEncoder 00021 { 00022 public: 00024 CECOCOVREncoder() {} 00025 00027 virtual ~CECOCOVREncoder() {} 00028 00030 virtual const char* get_name() const 00031 { 00032 return "ECOCOVREncoder"; 00033 } 00034 00038 virtual SGMatrix<int32_t> create_codebook(int32_t num_classes); 00039 }; 00040 00041 } 00042 00043 #endif /* end of include guard: ECOCOVRENCODER_H__ */