SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MulticlassMultipleOutputLabels.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 MULTICLASSMULTIPLEOUTPUTLABELS_H_
11 #define MULTICLASSMULTIPLEOUTPUTLABELS_H_
12 
13 #include <shogun/labels/Labels.h>
16 
17 namespace shogun
18 {
27 {
28 
29  public:
32 
37  CMulticlassMultipleOutputLabels(int32_t num_labels);
38 
41 
47 
54  virtual void ensure_valid(const char* context = NULL);
55 
63 
70  SGVector<index_t> get_label(int32_t idx);
71 
82  bool set_label(int32_t idx, SGVector<index_t> label);
83 
88  virtual int32_t get_num_labels();
89 
91  virtual const char* get_name() const { return "MulticlassMultipleOutputLabels"; }
92 
98 
99  private:
101  void init();
102 
103  protected:
107  int32_t m_n_labels;
108 
109 };
110 }
111 #endif

SHOGUN Machine Learning Toolbox - Documentation