How to Plot ROC curve with matplotlib/python
<p>I want to plot a ROC curve in <code>python</code> with <code>matplotlib</code> and want to show it like this:</p>

<p><a href="https://i.stack.imgur.com/FxOik.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FxOik.png" alt="enter image description here"></a></p>

<p>Say we have 0.0 to 1.0 predictions <code>y_score</code> and binary 0 or 1 labels <code>y_test</code> how to we convert this to a ROC curve?</p>

<p>I cannot find a function which do something like this in matplotlib.</p>

<p>Is there a easy way to do it?</p>