48 void CDenseLabels::init()
67 for (int32_t i=0; i<subset_size; i++)
77 SG_ERROR(
"A subset is set, cannot set labels\n")
99 for (
index_t i=0; i<num_labels; i++)
118 SG_ERROR(
"set_int_labels() is not possible on subset")
122 for (int32_t i=0; i<lab.
vlen; i++)
126 #if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
130 SG_ERROR(
"set_int_labels() is not possible on subset")
134 for (int32_t i=0; i<lab.
vlen; i++)
142 SG_ERROR(
"%s%sempty content (NULL) for labels\n", context?context:
"", context?
": ":
"")
155 SG_ERROR(
"save() is not possible on subset")
SGVector< float64_t > m_labels
void set_int_labels(SGVector< int32_t > labels)
virtual int32_t get_num_labels() const
The class Labels models labels, i.e. class assignments of objects.
CSubsetStack * m_subset_stack
float64_t get_label(int32_t idx)
SGVector< float64_t > get_labels_copy()
bool set_label(int32_t idx, float64_t label)
SGVector< float64_t > get_labels()
int32_t get_int_label(int32_t idx)
virtual void remove_subset()
A File access base class.
index_t subset_idx_conversion(index_t idx) const
void set_to_const(float64_t c)
SGVector< int32_t > get_int_labels()
all of classes and functions are contained in the shogun namespace
virtual void ensure_valid(const char *context=NULL)
bool set_int_label(int32_t idx, int32_t label)
SGVector< T > clone() const
virtual bool has_subsets() const
SGVector< float64_t > m_current_values
void set_labels(SGVector< float64_t > v)
virtual void load(CFile *loader)
virtual void save(CFile *writer)