Suppose you've got the following list of probabilities from your model:
[0.75, 0.82, 0.32, 0.64, 0.81, 0.21, 0.47, 0.2, 0.19, 0.11]
You'd like to build a ROC curve now. For starters, you took a random decision threshold, let's say . Based on the decision threshold, assign the probabilities to the classes (1 or 0). The answer should be the count of 's in the obtained list.