I am classifying certain objects into 5 classes with labels [0,1,2,3,4], by human.
A set of true labels: true_label = [3, 4, 2, 1, 0, 2 ............, 3]
A set of predicted labels: predictions = [3, 4, 2, 2, 0, 2, ........., 3]
How do I plot a ROC curve with such hard class predictions?
Plotting ROC curve (with sklearn API), seems to require predictions in terms of probabilities, but there are no such probabilities with categorical prediction by human. A human cannot give a 'probability' for certain prediction, he/she just thinks the object is 2
, but not 2 with 93% probability
.
How do I plot ROC curve with the numpy list true_label
and predictions
above?