SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RegressionLabels.cpp
Go to the documentation of this file.
3 
4 using namespace shogun;
5 
7 {
8 }
9 
10 CRegressionLabels::CRegressionLabels(int32_t num_labels) : CDenseLabels(num_labels)
11 {
12 }
13 
15 {
16  set_labels(src);
17 }
18 
20 {
21 }
22 
24 {
25  if ( base_labels->get_label_type() == LT_REGRESSION )
26  return (CRegressionLabels*) base_labels;
27  else
28  SG_SERROR("base_labels must be of dynamic type CRegressionLabels");
29 
30  return NULL;
31 }
32 
34 {
35  return LT_REGRESSION;
36 }
37 

SHOGUN Machine Learning Toolbox - Documentation