ECOCIHDDecoder.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 ECOCIHDDECODER_H__
00012 #define ECOCIHDDECODER_H__
00013 #ifdef HAVE_LAPACK
00014 
00015 #include <shogun/multiclass/ecoc/ECOCDecoder.h>
00016 
00017 namespace shogun
00018 {
00019 
00034 class CECOCIHDDecoder: public CECOCDecoder
00035 {
00036 public:
00038     CECOCIHDDecoder() {}
00039 
00041     virtual ~CECOCIHDDecoder() {}
00042 
00044     virtual const char* get_name() const { return "ECOCIHDDecoder"; }
00045 
00050     virtual int32_t decide_label(const SGVector<float64_t> outputs, const SGMatrix<int32_t> codebook);
00051 
00052 protected:
00054     void update_delta_cache(const SGMatrix<int32_t> codebook);
00055 
00056     SGMatrix<float64_t> m_delta;
00057     SGMatrix<int32_t> m_codebook;
00058 };
00059 
00060 } // namespace shogun
00061 
00062 #endif // HAVE_LAPACK
00063 #endif /* end of include guard: ECOCIHDDECODER_H__ */
00064 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation