5

Is there any package that you would recommend which can be used to calculate the precision, F1, recall for multi class classification task in R. I tried to use ROCR but it states that:

ROCR currently supports only evaluation of binary classification tasks
user2314737
  • 27,088
  • 20
  • 102
  • 114
tanay
  • 468
  • 5
  • 16

1 Answers1

1

I know that you were looking for a solution in R. That said, this is a link to a nice solution library in Python, using scikit-learn version 0.14. Python is very similar to R in a lot of respects (if you haven't used it before), and this could be a good place to start.

Another place you might want to look, if you are focused on R, is the the PerfMeas package. As I quote, this "Package implements different performance measures for classification and ranking tasks. AUC, precision at a given recall, F-score for single and multiple classes are available."

Nathaniel Payne
  • 2,749
  • 1
  • 28
  • 32
  • 1
    `caret` [on CRAN](https://cran.r-project.org/web/packages/caret/index.html) is a popular package for model building and evaluation, and it includes metrics you're looking for. – Dan Jarratt Jan 23 '17 at 20:16