15 ASSERT(base_labels != NULL)
17 return static_cast<CBinaryLabels*>(base_labels);
19 SG_SERROR(
"base_labels must be of dynamic type CBinaryLabels")
26 ASSERT(base_labels != NULL)
28 return static_cast<CLatentLabels*>(base_labels);
30 SG_SERROR(
"base_labels must be of dynamic type CLatentLabels\n")
37 ASSERT(base_labels != NULL)
39 return static_cast<CMulticlassLabels*>(base_labels);
41 SG_SERROR(
"base_labels must be of dynamic type CMulticlassLabels\n")
48 ASSERT(base_labels != NULL)
50 return static_cast<CRegressionLabels*>(base_labels);
52 SG_SERROR(
"base_labels must be of dynamic type CRegressionLabels")
59 ASSERT(base_labels != NULL)
61 return static_cast<CStructuredLabels*>(base_labels);
63 SG_SERROR(
"base_labels must be of dynamic type CStructuredLabels\n")
71 ASSERT(base_labels != NULL)
73 return static_cast<CMulticlassMultipleOutputLabels*>(base_labels);
75 SG_SERROR(
"base_labels must be of dynamic type CMulticlassMultipleOutputLabels\n")
82 ASSERT(base_labels != NULL)
85 SG_SERROR(
"base_labels must be of dynamic type CMulticlassMultipleOutputLabels\n")
static CRegressionLabels * to_regression(CLabels *base_labels)
Base class of the labels used in Structured Output (SO) problems
virtual ELabelType get_label_type() const =0
Real Labels are real-valued labels
The class Labels models labels, i.e. class assignments of objects.
real valued labels (e.g. for regression, classifier outputs)
multi-class labels 0,1,...
structured labels (e.g. sequences, trees) used in Structured Output problems
Multiclass Labels for multi-class classification with multiple labels
multiple output multiclass
Multiclass Labels for multi-class classification
static CBinaryLabels * to_binary(CLabels *base_labels)
static CMulticlassMultipleOutputLabels * to_multiclass_multiple_output(CLabels *base_labels)
static CMulticlassSOLabels * to_multiclass_structured(CLabels *base_labels)
all of classes and functions are contained in the shogun namespace
Binary Labels for binary classification
static CStructuredLabels * to_structured(CLabels *base_labels)
static CLatentLabels * to_latent(CLabels *base_labels)
abstract class for latent labels As latent labels always depends on the given application, this class only defines the API that the user has to implement for latent labels.
Class CMulticlassSOLabels to be used in the application of Structured Output (SO) learning to multicl...
static CMulticlassLabels * to_multiclass(CLabels *base_labels)