SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MulticlassOVREvaluation.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 (C) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef MULTICLASSOVREVALUATION_H_
11 #define MULTICLASSOVREVALUATION_H_
12 
13 #include <shogun/lib/config.h>
14 
17 #include <shogun/labels/Labels.h>
18 
19 namespace shogun
20 {
21 
22 class CLabels;
23 
31 {
32 public:
35 
38 
40  virtual ~CMulticlassOVREvaluation();
41 
44  {
45  SG_REF(binary_evaluation);
47  m_binary_evaluation = binary_evaluation;
48  }
49 
52  {
54  return m_binary_evaluation;
55  }
56 
62  virtual float64_t evaluate(CLabels* predicted, CLabels* ground_truth);
63 
66  {
67  return m_last_results;
68  }
69 
72  {
74  ASSERT(class_idx>=0)
75  ASSERT(class_idx<m_num_graph_results)
76  return m_graph_results[class_idx];
77  }
78 
81  {
83  }
84 
86  virtual const char* get_name() const { return "MulticlassOVREvaluation"; }
87 
88 protected:
89 
92 
95 
98 
101 
102 };
103 
104 }
105 
106 #endif /* MULTICLASSOVREVALUATION_H_ */

SHOGUN Machine Learning Toolbox - Documentation