SHOGUN  v3.1.1
 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 
48  virtual void ensure_valid(const char* context = NULL);
49 
57 
64  SGVector<index_t> get_label(int32_t idx);
65 
76  bool set_label(int32_t idx, SGVector<index_t> label);
77 
82  virtual int32_t get_num_labels() const;
83 
85  virtual const char* get_name() const { return "MulticlassMultipleOutputLabels"; }
86 
92 
93  private:
95  void init();
96 
97  protected:
101  int32_t m_n_labels;
102 
103 };
104 }
105 #endif
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:35
Multiclass Labels for multi-class classification with multiple labels.
multiple output multiclass
Definition: LabelTypes.h:24
shogun matrix
Definition: DenseFeatures.h:27
bool set_label(int32_t idx, SGVector< index_t > label)
virtual void ensure_valid(const char *context=NULL)
ELabelType
Definition: LabelTypes.h:11

SHOGUN Machine Learning Toolbox - Documentation