ECOCLLBDecoder.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 ECOCLLBDECODER_H__
00012 #define ECOCLLBDECODER_H__
00013 
00014 #include <shogun/multiclass/ecoc/ECOCSimpleDecoder.h>
00015 
00016 namespace shogun
00017 {
00018 
00023 class CECOCLLBDecoder: public CECOCSimpleDecoder
00024 {
00025 public:
00027     CECOCLLBDecoder() {}
00028 
00030     virtual ~CECOCLLBDecoder() {}
00031 
00033     virtual const char* get_name() const { return "ECOCLLBDecoder"; }
00034 
00035 protected:
00037     virtual bool binary_decoding() { return false; }
00038 
00040     virtual float64_t compute_distance(SGVector<float64_t> outputs, const int32_t *code);
00041 };
00042 
00043 } /* shogun */ 
00044 
00045 #endif /* end of include guard: ECOCLLBDECODER_H__ */
00046 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation