SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
RelaxedTreeUtil Class Reference

Detailed Description

Utility class for CRelaxedTree

Definition at line 23 of file RelaxedTreeUtil.h.

Public Member Functions

SGMatrix< float64_t > estimate_confusion_matrix (CBaseMulticlassMachine *machine, CFeatures *X, CMulticlassLabels *Y, int32_t num_classes)
void get_confusion_matrix (SGMatrix< float64_t > &conf_mat, CMulticlassLabels *gt, CMulticlassLabels *pred)

Member Function Documentation

SGMatrix< float64_t > estimate_confusion_matrix ( CBaseMulticlassMachine *  machine,
CFeatures *  X,
CMulticlassLabels *  Y,
int32_t  num_classes 
)

estimate confusion matrix with cross validation.

Parameters
machinemulticlass machine used to compute confusion matrix
Xtraining data
Ylabels for training data
num_classesnumber of classes
Returns
num_classes-by-num_classes confusion matrix.

Definition at line 17 of file RelaxedTreeUtil.cpp.

void get_confusion_matrix ( SGMatrix< float64_t > &  conf_mat,
CMulticlassLabels *  gt,
CMulticlassLabels *  pred 
)

Get confusion matrix.

Parameters
conf_matnum_class-by-num_class matrix, confusion matrix will be assigned to this
gtground-truth labels
predpredicted labels

Definition at line 76 of file RelaxedTreeUtil.cpp.


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

SHOGUN Machine Learning Toolbox - Documentation