suppose I have formatted the classification results of a model as the following:
actual.class score.actual.class
A 1
A 1
A 0.6
A 0.1
B 0.5
B 0.3
. .
. .
1-If I understand well, the ROC curve plots the trade-off between true positives and false positives. This implies that I need to be varying the score threshold for just one class(the true class) and not both, right? I mean if I pick A to be the true class here then I would use only the subset(results,actual.class="A")
to plot the ROC curve?
2-What if I wanted to generated the curve manually (without libraries), are the thresholds going to be each possible score from that subset?
3-Are the following points generated correctly from the above data for the purposes of plotting the ROC curve? (I'm using class A as the true class)
threshold fpr tpr
1 1 0
0.6 1/2 1/2
0.1 1/4 3/4
0 0 1
Are these the points that are going to form my ROC?