scikit-learn/scikit-learn — pull request #1733 by tjanez (2013-03-03 23:27:20+00:00)
Title: ENH Function auc_score should throw an error when y_true doesn't contain two unique class values

This is my proposed fix for issue #1722.