Utility class for CRelaxedTree
在文件 RelaxedTreeUtil.h 第 25 行定义.
Public 成员函数 | |
| 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) |
| SGMatrix< float64_t > estimate_confusion_matrix | ( | CBaseMulticlassMachine * | machine, |
| CFeatures * | X, | ||
| CMulticlassLabels * | Y, | ||
| int32_t | num_classes | ||
| ) |
estimate confusion matrix with cross validation.
| machine | multiclass machine used to compute confusion matrix |
| X | training data |
| Y | labels for training data |
| num_classes | number of classes |
在文件 RelaxedTreeUtil.cpp 第 17 行定义.
| void get_confusion_matrix | ( | SGMatrix< float64_t > & | conf_mat, |
| CMulticlassLabels * | gt, | ||
| CMulticlassLabels * | pred | ||
| ) |
Get confusion matrix.
| conf_mat | num_class-by-num_class matrix, confusion matrix will be assigned to this |
| gt | ground-truth labels |
| pred | predicted labels |
在文件 RelaxedTreeUtil.cpp 第 76 行定义.