SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MulticlassSOLabels.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) 2012 Fernando José Iglesias García
8  * Copyright (C) 2012 Fernando José Iglesias García
9  */
10 
11 #ifndef _MULTICLASS_SO_LABELS__H__
12 #define _MULTICLASS_SO_LABELS__H__
13 
15 #include <shogun/lib/SGVector.h>
18 
19 namespace shogun
20 {
21 
22 class CMulticlassSOLabels;
23 
30 {
33 
39 
45  {
46  if ( base_data->get_structured_data_type() == SDT_REAL )
47  return (CRealNumber*) base_data;
48  else
49  SG_SERROR("base_data must be of dynamic type CRealNumber\n");
50 
51  return NULL;
52  }
53 
55  virtual const char* get_name() const { return "RealNumber"; }
56 
59 };
60 
67 {
68  public:
71 
77 
79  virtual ~CMulticlassSOLabels();
80 
85  inline int32_t get_num_classes() { return m_num_classes; }
86 
88  virtual const char* get_name() const { return "MulticlassSOLabels"; }
89 
90  private:
91  void init();
92 
93  private:
95  int32_t m_num_classes;
96 
97 }; /* CMulticlassSOLabels */
98 
99 } /* namespace shogun */
100 
101 #endif /* _MULTICLASS_SO_LABELS__H__ */

SHOGUN Machine Learning Toolbox - Documentation