ECOCDecoder.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 ECOCDECODER_H__
00012 #define ECOCDECODER_H__
00013 
00014 #include <shogun/base/SGObject.h>
00015 #include <shogun/lib/SGMatrix.h>
00016 #include <shogun/lib/SGVector.h>
00017 
00018 namespace shogun
00019 {
00020 
00026 class CECOCDecoder: public CSGObject
00027 {
00028 public:
00030     CECOCDecoder() {}
00031 
00033     ~CECOCDecoder() {}
00034 
00036     const char* get_name() const
00037     {
00038         return "ECOCDecoder";
00039     }
00040 
00041 
00046     virtual int32_t decide_label(const SGVector<float64_t> outputs, const SGMatrix<int32_t> codebook)=0;
00047 
00048 protected:
00050     SGVector<float64_t> binarize(const SGVector<float64_t> query);
00051 };
00052 
00053 }
00054 
00055 #endif /* end of include guard: ECOCDECODER_H__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation