32 #ifndef _MULTILABEL_LABELS__H__ 33 #define _MULTILABEL_LABELS__H__ 35 #include <shogun/lib/config.h> 93 return "MultilabelLabels";
143 template <
class S,
class D>
160 void init(int32_t num_labels, int32_t num_classes);
static SGVector< D > to_dense(SGVector< S > *sparse, int32_t dense_len, D d_true, D d_false)
SGVector< int32_t > ** get_class_labels() const
The class Labels models labels, i.e. class assignments of objects.
void set_class_labels(SGVector< int32_t > **labels_list)
void set_labels(SGVector< int32_t > *labels)
virtual int32_t get_num_labels() const
SGVector< int32_t > get_label(int32_t j)
SGMatrix< int32_t > get_labels() const
virtual const char * get_name() const
all of classes and functions are contained in the shogun namespace
void set_label(int32_t j, SGVector< int32_t > label)
virtual ELabelType get_label_type() const
void ensure_valid(const char *context=NULL)
SGVector< int32_t > * m_labels
sparse label class for multilabel classification (sets of labels)
Multilabel Labels for multi-label classification.
virtual int32_t get_num_classes() const