14 using namespace shogun;
27 ASSERT(predicted && ground_truth);
47 int32_t length = orig_labels.
vlen;
48 for (i=0; i<length; i++)
53 int32_t* idxs =
SG_MALLOC(int32_t, length);
54 for(i=0; i<length; i++)
63 for (i=0; i<length-1; i++)
65 if (labels[i] != labels[i+1])
77 for(i=0; i<length; i++)
86 ASSERT(pos_count>0 && neg_count>0);
92 for(i=0; i<length; i++)
96 if (label != threshold)
104 m_thresholds[i]=threshold;
127 SG_ERROR(
"Uninitialized, please call evaluate first");
135 SG_ERROR(
"Uninitialized, please call evaluate first");
143 SG_ERROR(
"Uninitialized, please call evaluate first");