title: ROC curve for binary classification in python
body: <p>I am tying to plot an ROC curve for Binary classification using <code>RandomForestClassifier</code> </p>
  
  <p>I have two numpy arrays one contains predicted values and one contains true values as follows:</p>
  
  <pre><code>In [84]: test
  Out[84]: array([0, 1, 0, ..., 0, 1, 0])
  
  In [85]: pred
  Out[85]: array([0, 1, 0, ..., 1, 0, 0])
  </code></pre>
  
  <p>How do I port ROC curve and obtain AUC (Area Under Curve) for this binary classification result in ipython?</p>