SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DirectorContingencyTableEvaluation.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Copyright (W) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef DIRECTORCONTINGENCYTABLEEVALUATION_H_
11 #define DIRECTORCONTINGENCYTABLEEVALUATION_H_
12 
14 #include <shogun/lib/config.h>
15 #ifdef USE_SWIG_DIRECTORS
16 namespace shogun
17 {
18 
19 #define IGNORE_IN_CLASSLIST
20 
25 IGNORE_IN_CLASSLIST class CDirectorContingencyTableEvaluation: public CContingencyTableEvaluation
26 {
27 
28 public:
29 
31  CDirectorContingencyTableEvaluation() :
32  CContingencyTableEvaluation(CUSTOM)
33  {
34  }
35 
37  virtual ~CDirectorContingencyTableEvaluation()
38  {
39  }
40 
42  virtual float64_t evaluate(CLabels* predicted, CLabels* ground_truth)
43  {
44  CContingencyTableEvaluation::evaluate(predicted, ground_truth);
45  }
46 
50  virtual float64_t get_custom_score()
51  {
53  return 0.0;
54  }
55 
59  virtual EEvaluationDirection get_custom_direction()
60  {
62  return ED_MAXIMIZE;
63  }
64 
66  virtual const char* get_name() const
67  {
68  return "DirectorContingencyTableEvaluation";
69  }
70 
71 };
72 
73 }
74 #endif /* USE_SWIG_DIRECTORS */
75 #endif /* DIRECTORCONTINGENCYTABLEEVALUATION_H_ */

SHOGUN Machine Learning Toolbox - Documentation