37 SG_ERROR(
"Non-valid StructuredLabels in %s", context)
50 SG_ERROR(
"Index must be inside [0, num_labels-1]\n")
57 ensure_valid_sdt(label);
63 ensure_valid_sdt(label);
84 void CStructuredLabels::init()
101 "belong to the same CStructuredData child class\n");
The class Labels models labels, i.e. class assignments of objects.
CDynamicObjectArray * get_labels() const
virtual ~CStructuredLabels()
int32_t get_num_elements() const
CSubsetStack * m_subset_stack
bool set_element(CSGObject *e, int32_t idx1, int32_t idx2=0, int32_t idx3=0)
virtual EStructuredDataType get_structured_data_type() const
CDynamicObjectArray * m_labels
Class SGObject is the base class of all shogun objects.
EStructuredDataType m_sdt
index_t subset_idx_conversion(index_t idx) const
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
virtual void add_label(CStructuredData *label)
all of classes and functions are contained in the shogun namespace
virtual int32_t get_num_labels() const
virtual CStructuredData * get_label(int32_t idx)
CSGObject * get_element(int32_t index) const
void push_back(CSGObject *e)
virtual void ensure_valid(const char *context=NULL)
Base class of the components of StructuredLabels.
virtual bool set_label(int32_t idx, CStructuredData *label)