scikit-learn/scikit-learn — pull request #979 by amueller (2012-07-24 22:23:48+00:00)
Title: MRG corrected warning for always present labels. ugh

This corrects the error in the warning that @mbondel pointed out.

It also makes ``LabelBinarizer`` return ``np.int``. I figured that was sensible. Is this ok for everybody?
Should this go into ``whatsnew.rst``?

There is one small issue, though, that is a bit weird.
ECOC produces binary labels ``[-1, 1]`` which means that the error message will always say "label xxx always present`` and never "label not xxx always present".

@mbondel I didn't understand why the ECOC sometimes produces ``[0, 1]`` and sometimes ``[-1, 1]``.
In principal all estimators should be agnostic to what the labels actually are.