20 ASSERT(predicted && ground_truth)
27 for (int32_t i=0; i<length; i++)
32 if (prediction<=-1.0 || truth<=-1.0)
34 SG_WARNING(
"Negative label[%d] in %s is not allowed, ignoring!\n",
virtual ELabelType get_label_type() const =0
Real Labels are real-valued labels.
The class Labels models labels, i.e. class assignments of objects.
virtual int32_t get_num_labels() const =0
real valued labels (e.g. for regression, classifier outputs)
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)
all of classes and functions are contained in the shogun namespace
static float64_t log(float64_t v)
static float32_t sqrt(float32_t x)
virtual const char * get_name() const