11 #ifndef MULTICLASSACCURACY_H_ 12 #define MULTICLASSACCURACY_H_ 14 #include <shogun/lib/config.h> 76 virtual const char*
get_name()
const {
return "MulticlassAccuracy"; }
CMulticlassAccuracy(bool ignore_rejects)
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)
The class Labels models labels, i.e. class assignments of objects.
The class MulticlassAccuracy used to compute accuracy of multiclass classification.
virtual const char * get_name() const
static SGMatrix< int32_t > get_confusion_matrix(CLabels *predicted, CLabels *ground_truth)
int32_t get_rejects_num() const
EEvaluationDirection get_evaluation_direction() const
all of classes and functions are contained in the shogun namespace
virtual ~CMulticlassAccuracy()
Class Evaluation, a base class for other classes used to evaluate labels, e.g. accuracy of classifica...