11 #ifndef CROSSVALIDATIONMULTICLASSSTORAGE_H_
12 #define CROSSVALIDATIONMULTICLASSSTORAGE_H_
168 const char* prefix=
"");
176 const char* prefix=
"");
179 virtual const char*
get_name()
const {
return "CrossValidationMulticlassStorage"; }
void append_binary_evaluation(CBinaryClassEvaluation *evaluation)
CMulticlassLabels * m_pred_labels
bool m_compute_conf_matrices
SGVector< float64_t > m_evaluations_results
SGMatrix< float64_t > * m_fold_ROC_graphs
CDynamicObjectArray * m_binary_evaluations
The class Labels models labels, i.e. class assignments of objects.
float64_t get_fold_accuracy(int32_t run, int32_t fold)
virtual const char * get_name() const
int32_t get_num_elements() const
virtual void init_expose_labels(CLabels *labels)
Multiclass Labels for multi-class classification.
virtual ~CCrossValidationMulticlassStorage()
SGMatrix< int32_t > get_fold_conf_matrix(int32_t run, int32_t fold)
float64_t get_fold_evaluation_result(int32_t run, int32_t fold, int32_t c, int32_t e)
SGVector< float64_t > m_accuracies
virtual void update_test_true_result(CLabels *results, const char *prefix="")
Class for storing multiclass evaluation information in every fold of cross-validation.
Class for managing individual folds in cross-validation.
SGMatrix< float64_t > * m_fold_PRC_graphs
CMulticlassLabels * m_true_labels
CCrossValidationMulticlassStorage(bool compute_ROC=true, bool compute_PRC=false, bool compute_conf_matrices=false)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
CBinaryClassEvaluation * get_binary_evaluation(int32_t idx)
all of classes and functions are contained in the shogun namespace
CSGObject * get_element_safe(int32_t index) const
SGMatrix< float64_t > get_fold_PRC(int32_t run, int32_t fold, int32_t c)
SGMatrix< int32_t > * m_conf_matrices
virtual void post_update_results()
void push_back(CSGObject *e)
SGMatrix< float64_t > get_fold_ROC(int32_t run, int32_t fold, int32_t c)
The class TwoClassEvaluation, a base class used to evaluate binary classification labels...
virtual void update_test_result(CLabels *results, const char *prefix="")