Plot ROC from multi-class from Weka prediction

Viewed 61

I am trying to plot ROC curve from the prediction which was obtained from Weka command prompt. It contains Actual, predicted, error and prediction column. How to plot from this in Python (or other Language).

Example of sample data

1 Answers

Since you are already using Weka, why don't you use its Explorer to display the ROC curve itself?

Rather than using the raw actual/predicted values, Weka's command-line can output the correctly computed data in a separate file (using the options -threshold-file and -threshold-label).

See the Weka wiki article on ROC Curves for more details.

Related