When I used sklearn function roc_curve on my data with logistic regression model:
roc_curve(y_test, predictions_test)
I got this result:
(array([0. , 0.1, 1. ]), array([0. , 0.865, 1. ]), array([2, 1, 0]))
In [137]:
I know that in third array there are thresholds and in first and second there are corresponding TPR and FPR. But I dint understand why there are three thresholds. How number of thresholds is defined in this function? For example when I use logistic regression, thresholds must be probabilities from sigmoid function, but here they are 2,1,0. Why so?