SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
DirectorContingencyTableEvaluation.h
浏览该文件的文档.
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_ */
#define SG_NOTIMPLEMENTED
Definition: SGIO.h:139
EEvaluationDirection
Definition: Evaluation.h:29
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
#define IGNORE_IN_CLASSLIST
Definition: CPLEXSVM.h:24
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)

SHOGUN 机器学习工具包 - 项目文档