SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions
CF1Measure Class Reference

Detailed Description

class F1Measure used to measure F1 score of 2-class classifier.

This class is also capable of measuring any other rate using get_[measure name] methods of CContingencyTableEvaluation class.

Note that evaluate() should be called first.

Definition at line 317 of file ContingencyTableEvaluation.h.

Inheritance diagram for CF1Measure:
Inheritance graph
[legend]

Public Member Functions

 CF1Measure ()
virtual ~CF1Measure ()
virtual const char * get_name () const
- Public Member Functions inherited from CContingencyTableEvaluation
 CContingencyTableEvaluation ()
 CContingencyTableEvaluation (EContingencyTableMeasureType type)
virtual ~CContingencyTableEvaluation ()
virtual float64_t evaluate (CLabels *predicted, CLabels *ground_truth)
EEvaluationDirection get_evaluation_direction ()
float64_t get_accuracy () const
float64_t get_error_rate () const
float64_t get_BAL () const
float64_t get_WRACC () const
float64_t get_F1 () const
float64_t get_cross_correlation () const
float64_t get_recall () const
float64_t get_precision () const
float64_t get_specificity () const
- 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)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_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

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters
- Protected Member Functions inherited from CContingencyTableEvaluation
void compute_scores (CLabels *predicted, CLabels *ground_truth)
- Protected Attributes inherited from CContingencyTableEvaluation
EContingencyTableMeasureType m_type
bool m_computed
int32_t m_N
float64_t m_TP
float64_t m_FP
float64_t m_TN
float64_t m_FN

Constructor & Destructor Documentation

Definition at line 321 of file ContingencyTableEvaluation.h.

virtual ~CF1Measure ( )
virtual

Definition at line 323 of file ContingencyTableEvaluation.h.

Member Function Documentation

virtual const char* get_name ( ) const
virtual

get name

Reimplemented from CContingencyTableEvaluation.

Definition at line 325 of file ContingencyTableEvaluation.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation