Public Member Functions | Protected Attributes

CROCEvaluation Class Reference

Detailed Description

Class ROCEvalution used to evaluate ROC (Receiver Operator Characteristic) and an area under ROC curve (auROC).

Implementation is based on the efficient ROC algorithm as described in

Fawcett, Tom (2004) ROC Graphs: Notes and Practical Considerations for Researchers; Machine Learning, 2004

Definition at line 30 of file ROCEvaluation.h.

Inheritance diagram for CROCEvaluation:
Inheritance graph

List of all members.

Public Member Functions

 CROCEvaluation ()
virtual ~CROCEvaluation ()
virtual const char * get_name () const
virtual float64_t evaluate (CLabels *predicted, CLabels *ground_truth)
EEvaluationDirection get_evaluation_direction ()
float64_t get_auROC ()
SGMatrix< float64_tget_ROC ()
SGVector< float64_tget_thresholds ()

Protected Attributes

float64_t m_auROC
int32_t m_ROC_length
bool m_computed

Constructor & Destructor Documentation

CROCEvaluation (  ) 


Definition at line 34 of file ROCEvaluation.h.

~CROCEvaluation (  )  [virtual]


Definition at line 16 of file ROCEvaluation.cpp.

Member Function Documentation

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

evaluate ROC and auROC

predicted labels
ground_truth labels assumed to be correct

Implements CBinaryClassEvaluation.

Definition at line 21 of file ROCEvaluation.cpp.

float64_t get_auROC (  ) 

get auROC

area under ROC (auROC)

Definition at line 141 of file ROCEvaluation.cpp.

EEvaluationDirection get_evaluation_direction (  )  [virtual]
whether criterium has to be maximized or minimized

Implements CEvaluation.

Definition at line 51 of file ROCEvaluation.h.

virtual const char* get_name (  )  const [virtual]

get name

Implements CSGObject.

Definition at line 42 of file ROCEvaluation.h.

SGMatrix< float64_t > get_ROC (  ) 

get ROC

ROC graph matrix

Definition at line 121 of file ROCEvaluation.cpp.

SGVector< float64_t > get_thresholds (  ) 

get thresholds corresponding to points on the ROC graph


Definition at line 131 of file ROCEvaluation.cpp.

Member Data Documentation

float64_t m_auROC [protected]

area under ROC graph

Definition at line 80 of file ROCEvaluation.h.

bool m_computed [protected]

indicator of ROC and auROC being computed already

Definition at line 86 of file ROCEvaluation.h.

float64_t* m_ROC_graph [protected]

2-d array used to store ROC graph

Definition at line 74 of file ROCEvaluation.h.

int32_t m_ROC_length [protected]

number of points in ROC graph

Definition at line 83 of file ROCEvaluation.h.

float64_t* m_thresholds [protected]

vector with thresholds corresponding to points on the ROC graph

Definition at line 77 of file ROCEvaluation.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