24 ASSERT(predicted && ground_truth)
39 int32_t length = orig_labels.
vlen;
43 int32_t* idxs = SG_MALLOC(int32_t, length);
44 for(i=0; i<length; i++)
57 for (i=0; i<length; i++)
67 for (i=0; i<length; i++)
78 m_thresholds[i]= predicted->
get_value(idxs[i]);
94 SG_ERROR(
"Uninitialized, please call evaluate first")
102 SG_ERROR(
"Uninitialized, please call evaluate first")
110 SG_ERROR(
"Uninitialized, please call evaluate first")
SGMatrix< float64_t > get_PRC()
virtual float64_t get_value(int32_t idx)
virtual ELabelType get_label_type() const =0
The class Labels models labels, i.e. class assignments of objects.
virtual int32_t get_num_labels() const =0
static T * clone_vector(const T *vec, int32_t len)
SGVector< float64_t > get_thresholds()
virtual float64_t evaluate(CLabels *predicted, CLabels *ground_truth)
static float64_t area_under_curve(float64_t *xy, int32_t len, bool reversed)
SGVector< float64_t > m_thresholds
virtual SGVector< float64_t > get_values()
SGMatrix< float64_t > m_PRC_graph
all of classes and functions are contained in the shogun namespace
virtual ~CPRCEvaluation()
virtual void ensure_valid(const char *context=NULL)=0
static void qsort_backward_index(T1 *output, T2 *index, int32_t size)