SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Labels.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  * Written (W) 1999-2009 Soeren Sonnenburg
8  * Written (W) 1999-2008 Gunnar Raetsch
9  * Written (W) 2011 Heiko Strathmann
10  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
11  */
12 
13 #ifndef _LABELS__H__
14 #define _LABELS__H__
15 
16 #include <shogun/lib/common.h>
17 #include <shogun/base/SGObject.h>
20 
21 namespace shogun
22 {
34 class CLabels : public CSGObject
35 {
36  public:
38  CLabels();
39 
41  virtual ~CLabels();
42 
49  virtual void ensure_valid(const char* context=NULL)=0;
50 
55  virtual int32_t get_num_labels()=0;
56 
61  virtual ELabelType get_label_type()=0;
62 
68  virtual void add_subset(SGVector<index_t> subset);
69 
72  virtual void remove_subset();
73 
76  virtual void remove_all_subsets();
77 
83  virtual void set_confidence(float64_t confidence, int32_t idx);
84 
90  virtual float64_t get_confidence(int32_t idx);
91 
97  virtual void set_confidences(SGVector<float64_t> confidences);
98 
104 
105  private:
106  void init();
107 
108  protected:
109 
112 
115 };
116 }
117 #endif

SHOGUN Machine Learning Toolbox - Documentation