ROC Curves in Two Lines of Code

Editor’s Note: This post first appeared on the Revolution Analytics/Microsoft Blog, “Revolutions” on August 2, 2016. As the Revolutions blog no longer exists, we are republishing it here with permission from the author. ROC curves are commonly used to characterize the sensitivity/specificity tradeoffs for a binary classifier. Most machine learning classifiers produce real-valued scores that…