Here's code I've used several times and will probably use again. I'm putting it on github for the following reasons:
-
If it could help somebody solve a problem, that would be rad.
-
It will keep me honest, with respect to documenting my code well.
Plot and compute ROC AUC. I've found sklearn's plotting of ROC AUC underwhelming so I'd rather call my own function.