Public Member Functions | Protected Attributes

CPRCEvaluation Class Reference

Detailed Description

The class PRCEvalution used to evaluate PRC (Precision Recall Curve) graph of binary classifier. This class also has an capability of calculating auPRC (area under PRC).

Definition at line 27 of file PRCEvaluation.h.

Inheritance diagram for CPRCEvaluation:
Inheritance graph

List of all members.

Public Member Functions

 CPRCEvaluation ()
virtual ~CPRCEvaluation ()
virtual const char * get_name () const
virtual float64_t evaluate (CLabels *predicted, CLabels *ground_truth)
EEvaluationDirection get_evaluation_direction ()
float64_t get_auPRC ()
SGMatrix< float64_tget_PRC ()

Protected Attributes

float64_t m_auPRC
int32_t m_PRC_length
bool m_computed

Constructor & Destructor Documentation

CPRCEvaluation (  ) 


Definition at line 31 of file PRCEvaluation.h.

~CPRCEvaluation (  )  [virtual]


Definition at line 16 of file PRCEvaluation.cpp.

Member Function Documentation

float64_t evaluate ( CLabels predicted,
CLabels ground_truth 
) [virtual]

evaluate PRC and auPRC

predicted labels
ground_truth labels assumed to be correct

Implements CBinaryClassEvaluation.

Definition at line 21 of file PRCEvaluation.cpp.

float64_t get_auPRC (  ) 

get auPRC

area under PRC (auPRC)

Definition at line 97 of file PRCEvaluation.cpp.

EEvaluationDirection get_evaluation_direction (  )  [virtual]
whether criterium has to be maximised or minimised

Implements CEvaluation.

Definition at line 48 of file PRCEvaluation.h.

virtual const char* get_name ( void   )  const [virtual]

get name

Implements CSGObject.

Definition at line 39 of file PRCEvaluation.h.

SGMatrix< float64_t > get_PRC (  ) 

get PRC

PRC graph matrix

Definition at line 87 of file PRCEvaluation.cpp.

Member Data Documentation

float64_t m_auPRC [protected]

area under PRC graph

Definition at line 69 of file PRCEvaluation.h.

bool m_computed [protected]

indicator of PRC and auPRC being computed already

Definition at line 75 of file PRCEvaluation.h.

float64_t* m_PRC_graph [protected]

2-d array used to store PRC graph

Definition at line 66 of file PRCEvaluation.h.

int32_t m_PRC_length [protected]

number of points in PRC graph

Definition at line 72 of file PRCEvaluation.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation