|
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.

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_t > | get_PRC () |
| SGVector< float64_t > | get_thresholds () |
Public Member Functions inherited from CBinaryClassEvaluation | |
| CBinaryClassEvaluation () | |
| virtual | ~CBinaryClassEvaluation () |
Public Member Functions inherited from CEvaluation | |
| CEvaluation () | |
| virtual | ~CEvaluation () |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
| template<> | |
| void | set_generic () |
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.