14 using namespace shogun;
27 ASSERT(predicted && ground_truth)
47 int32_t length = orig_labels.
vlen;
48 for (i=0; i<length; i++)
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 REQUIRE(pos_count>0,
"%s::evaluate_roc(): Number of positive labels is "
88 REQUIRE(neg_count>0,
"%s::evaluate_roc(): Number of negative labels is "
95 for(i=0; i<length; i++)
99 if (label != threshold)
107 m_thresholds[i]=threshold;
109 if (ground_truth->
get_value(idxs[i]) > 0)
130 SG_ERROR(
"Uninitialized, please call evaluate first")
138 SG_ERROR(
"Uninitialized, please call evaluate first")
146 SG_ERROR(
"Uninitialized, please call evaluate first")