|
SHOGUN
v1.1.0
|
Class PRCEvaluation used to evaluate PRC (Precision Recall Curve) and an area under PRC curve (auPRC).
Definition at line 25 of file PRCEvaluation.h.

Protected Attributes | |
| float64_t * | m_PRC_graph |
| float64_t * | m_thresholds |
| float64_t | m_auPRC |
| int32_t | m_PRC_length |
| bool | m_computed |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Protected Member Functions inherited from CSGObject | |
| virtual void | load_serializable_pre () throw (ShogunException) |
| virtual void | load_serializable_post () throw (ShogunException) |
| virtual void | save_serializable_pre () throw (ShogunException) |
| virtual void | save_serializable_post () throw (ShogunException) |
| CPRCEvaluation | ( | ) |
constructor
Definition at line 29 of file PRCEvaluation.h.
|
virtual |
destructor
Definition at line 16 of file PRCEvaluation.cpp.
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 | ( | ) |
|
virtual |
Implements CEvaluation.
Definition at line 46 of file PRCEvaluation.h.
|
virtual |
get thresholds corresponding to points on the PRC graph
Definition at line 100 of file PRCEvaluation.cpp.
|
protected |
area under PRC graph
Definition at line 74 of file PRCEvaluation.h.
|
protected |
indicator of PRC and auPRC being computed already
Definition at line 80 of file PRCEvaluation.h.
|
protected |
2-d array used to store PRC graph
Definition at line 68 of file PRCEvaluation.h.
|
protected |
number of points in PRC graph
Definition at line 77 of file PRCEvaluation.h.
|
protected |
vector with thresholds corresponding to points on the PRC graph
Definition at line 71 of file PRCEvaluation.h.