10 using namespace shogun;
14 ASSERT(base_labels != NULL)
16 return static_cast<CBinaryLabels*>(base_labels);
18 SG_SERROR(
"base_labels must be of dynamic type CBinaryLabels")
25 ASSERT(base_labels != NULL)
27 return static_cast<CLatentLabels*>(base_labels);
29 SG_SERROR(
"base_labels must be of dynamic type CLatentLabels\n")
36 ASSERT(base_labels != NULL)
38 return static_cast<CMulticlassLabels*>(base_labels);
40 SG_SERROR(
"base_labels must be of dynamic type CMulticlassLabels\n")
47 ASSERT(base_labels != NULL)
49 return static_cast<CRegressionLabels*>(base_labels);
51 SG_SERROR(
"base_labels must be of dynamic type CRegressionLabels")
58 ASSERT(base_labels != NULL)
60 return static_cast<CStructuredLabels*>(base_labels);
62 SG_SERROR(
"base_labels must be of dynamic type CStructuredLabels\n")
70 ASSERT(base_labels != NULL)
72 return static_cast<CMulticlassMultipleOutputLabels*>(base_labels);
74 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)
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.
static CMulticlassLabels * to_multiclass(CLabels *base_labels)