I'm wondering how to calculate precision and recall measures for multiclass multilabel classification, i.e. classification where there are more than two labels, and where each instance can have multiple labels?
|
Another popular tool for measuring classifier performance is ROC/AUC ; this one too has a multi-class / multi-label extension : see [Hand 2001] [Hand 2001]: A simple generalization of the area under the ROC curve to multiple class classification problems |
|||
|
|
|
I don't know about the multi-label part but for the mutli-class classification those links will help you This link explains how to build the confusion matrix that you can use to calculate the precision and recall for each category And this link explains how to calculate micro-f1 and macro-f1 measures to evaluate the classifier as a whole. hope that you found that useful. |
|||||||||
|
|
Check out these slides from cs205.org at Harvard. Once you get to the section on Error Measures, there is discussion of precision and recall in multi-class settings (e.g., one-vs-all or one-vs-one) and confusion matrices. Confusion matrices is what you really want here. FYI, in the Python software package scikits.learn, there are built-in methods to automatically compute things like the confusion matrix from classifiers trained on multi-class data. It can probably directly compute precision-recall plots for you too. Worth a look. |
|||||||
|