SHOGUN
v3.2.0
|
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 * Copyright (W) 2012 Sergey Lisitsyn 00008 */ 00009 00010 #ifndef DIRECTORCONTINGENCYTABLEEVALUATION_H_ 00011 #define DIRECTORCONTINGENCYTABLEEVALUATION_H_ 00012 00013 #include <shogun/evaluation/ContingencyTableEvaluation.h> 00014 #include <shogun/lib/config.h> 00015 #ifdef USE_SWIG_DIRECTORS 00016 namespace shogun 00017 { 00018 00019 #define IGNORE_IN_CLASSLIST 00020 00025 IGNORE_IN_CLASSLIST class CDirectorContingencyTableEvaluation: public CContingencyTableEvaluation 00026 { 00027 00028 public: 00029 00031 CDirectorContingencyTableEvaluation() : 00032 CContingencyTableEvaluation(CUSTOM) 00033 { 00034 } 00035 00037 virtual ~CDirectorContingencyTableEvaluation() 00038 { 00039 } 00040 00042 virtual float64_t evaluate(CLabels* predicted, CLabels* ground_truth) 00043 { 00044 CContingencyTableEvaluation::evaluate(predicted, ground_truth); 00045 } 00046 00050 virtual float64_t get_custom_score() 00051 { 00052 SG_NOTIMPLEMENTED 00053 return 0.0; 00054 } 00055 00059 virtual EEvaluationDirection get_custom_direction() 00060 { 00061 SG_NOTIMPLEMENTED 00062 return ED_MAXIMIZE; 00063 } 00064 00066 virtual const char* get_name() const 00067 { 00068 return "DirectorContingencyTableEvaluation"; 00069 } 00070 00071 }; 00072 00073 } 00074 #endif /* USE_SWIG_DIRECTORS */ 00075 #endif /* DIRECTORCONTINGENCYTABLEEVALUATION_H_ */