10 #ifndef _MULTILABEL_SO_LABELS__H__ 11 #define _MULTILABEL_SO_LABELS__H__ 13 #include <shogun/lib/config.h> 24 class CMultilabelSOLabels;
58 SG_SERROR(
"base_data must be of dynamic type CSparseMultilabel\n");
67 return "SparseMultilabel";
117 return "MultilabelSOLabels";
121 virtual int32_t get_num_labels()
const;
124 virtual int32_t get_num_classes()
const;
172 virtual void ensure_valid(
const char * context = NULL);
190 int32_t m_last_set_label;
Base class of the labels used in Structured Output (SO) problems.
virtual const char * get_name() const
SGVector< int32_t > get_data() const
Class CMultilabelSOLabels used in the application of Structured Output (SO) learning to Multilabel Cl...
virtual EStructuredDataType get_structured_data_type() const
SGVector< int32_t > m_label
CSparseMultilabel(SGVector< int32_t > label)
Class CSparseMultilabel to be used in the application of Structured Output (SO) learning to Multilabe...
all of classes and functions are contained in the shogun namespace
STRUCTURED_DATA_TYPE(SDT_SPARSE_MULTILABEL)
Multilabel Labels for multi-label classification.
Base class of the components of StructuredLabels.
static CSparseMultilabel * obtain_from_generic(CStructuredData *base_data)
virtual const char * get_name() const