18 ASSERT(predicted && ground_truth)
24 for (int32_t i=0; i < predicted_ilabels.vlen; ++i)
26 if (predicted_ilabels[i] == groundtruth_ilabels[i])
29 return float64_t(correct)/predicted_ilabels.vlen;
virtual ELabelType get_label_type() const =0
The class Labels models labels, i.e. class assignments of objects.
multi-class labels 0,1,...
Multiclass Labels for multi-class classification.
all of classes and functions are contained in the shogun namespace
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)