scikit-learn/scikit-learn — pull request #1432 by kuantkid (2012-12-02 07:39:30+00:00)
Title: Fix for roc_curve when one class is present

Minor fix for issue #1257 when only one class is in `y_true`:

When one classes detected, a warning is issued
1. no postive classes, true positive rate (`TPR=TP/(TP+FN)`) is meaningless
2. no negative classes, false positive rate (`FPR=FP/(FP+TN)`) is meaningless