SHOGUN
v1.1.0
|
Class Evaluation, a base class for other classes used to evaluate labels, e.g. accuracy of classification or mean squared error of regression.
This class provides only interface for evaluation measures.
Definition at line 36 of file Evaluation.h.
Public Member Functions | |
CEvaluation () | |
virtual | ~CEvaluation () |
virtual float64_t | evaluate (CLabels *predicted, CLabels *ground_truth)=0 |
virtual EEvaluationDirection | get_evaluation_direction ()=0 |
![]() | |
CSGObject () | |
CSGObject (const CSGObject &orig) | |
virtual | ~CSGObject () |
virtual const char * | get_name () const =0 |
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) |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
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) |
CEvaluation | ( | ) |
constructor
Definition at line 40 of file Evaluation.h.
|
virtual |
destructor
Definition at line 43 of file Evaluation.h.
evaluate labels
predicted | labels for evaluating |
ground_truth | labels assumed to be correct |
Implemented in CContingencyTableEvaluation, CROCEvaluation, CMulticlassAccuracy, CMeanSquaredError, CMeanAbsoluteError, CPRCEvaluation, and CBinaryClassEvaluation.
|
pure virtual |
Implemented in CContingencyTableEvaluation, CROCEvaluation, CMulticlassAccuracy, CMeanSquaredError, CMeanAbsoluteError, and CPRCEvaluation.