scikit-learn/scikit-learn — pull request #1009 by amueller (2012-08-10 14:30:11+00:00)
Title: TST classifier behavior with only one class present

This PR checks the behavior of all classifiers regarding training with only one class. The classifier should either yield a constant predictor or raise a sensible error message.