14 using namespace shogun;
23 ASSERT(predicted && ground_truth);
36 int32_t length = orig_labels.
vlen;
41 int32_t* idxs =
SG_MALLOC(int32_t, length);
42 for(i=0; i<length; i++)
56 for (i=0; i<length; i++)
66 for (i=0; i<length; i++)
93 SG_ERROR(
"Uninitialized, please call evaluate first");
103 SG_ERROR(
"Uninitialized, please call evaluate first");
113 SG_ERROR(
"Uninitialized, please call evaluate first");
SGMatrix< float64_t > get_PRC()
SGVector< float64_t > get_labels()
The class Labels models labels, i.e. class assignments of objects.
SGVector< float64_t > get_thresholds()
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)
virtual void free_vector()
float64_t get_label(int32_t idx)
static T * clone_vector(const T *vec, int32_t len)
static float64_t area_under_curve(float64_t *xy, int32_t len, bool reversed)
bool is_two_class_labeling()
virtual ~CPRCEvaluation()
#define SG_MALLOC(type, len)
static void qsort_backward_index(T1 *output, T2 *index, int32_t size)