title: scikit-learn: How do I define the thresholds for the ROC curve?
body: <p>When plotting the ROC (or deriving the AUC) in <code>scikit-learn</code>, how can one <em>specify</em> arbitrary thresholds for <code>roc_curve</code>, rather than having the function calculate them internally and return them?</p>
  
  <pre><code>from sklearn.metrics import roc_curve
  fpr,tpr,thresholds = roc_curve(y_true,y_pred)
  </code></pre>
  
  <p>A related question was asked at <a href="https://stackoverflow.com/questions/48657329/scikit-how-to-define-thresholds-for-plotting-roc-curve">Scikit - How to define thresholds for plotting roc curve</a>, but the OP's accepted answer indicates that their intent was different to how it was written.</p>
  
  <p>Thanks!</p>