SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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 
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)
EEvaluationDirection
Definition: Evaluation.h:29
double float64_t
Definition: common.h:50
virtual const char * get_name() const
EEvaluationDirection get_evaluation_direction() const
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
Class CMultilabelAccuracy used to compute accuracy of multilabel classification.
Class Evaluation, a base class for other classes used to evaluate labels, e.g. accuracy of classifica...
Definition: Evaluation.h:40

SHOGUN Machine Learning Toolbox - Documentation