Roc curve and cut off point. Python
问题 I ran a logistic regression model and made predictions of the logit values. I used this to get the points on the ROC curve: from sklearn import metrics fpr, tpr, thresholds = metrics.roc_curve(Y_test,p) I know metrics.roc_auc_score gives the area under the ROC curve. Can anyone tell me what command will find the optimal cut-off point (threshold value)? 回答1: Though its late to answer, thought might be helpful. You can do this using the epi package in R (here!), however I could not find similar