SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultilabelAccuracy.h
Go to the documentation of this file.
1 /*
2  * This software is distributed under BSD 3-clause license (see LICENSE file).
3  *
4  * Copyright(C) 2014 Abinash panda
5  * Written(W) 2014 Abinash Panda
6  */
7 
8 #ifndef _MULTILABEL_ACCURACY__H__
9 #define _MULTILABEL_ACCURACY__H__
10 
11 #include <shogun/lib/config.h>
12 
14 #include <shogun/labels/Labels.h>
15 
16 namespace shogun
17 {
18 
30 {
31 public:
34 
36  virtual ~CMultilabelAccuracy();
37 
45  virtual float64_t evaluate(CLabels * predicted, CLabels * ground_truth);
46 
48  {
49  return ED_MAXIMIZE;
50  }
51 
53  virtual const char * get_name() const
54  {
55  return "MultilabelAccuracy";
56  }
57 }; /* class CMultilabelAccuracy */
58 
59 } /* namespace shogun */
60 
61 #endif /* _MULTILABEL_ACCURACY__H__ */
62 
63 
64 

SHOGUN Machine Learning Toolbox - Documentation