scikit-learn/scikit-learn — Issue #548: specify label encoding in LabelBinarizer
Author: mblondel
Created: 2012-01-11 11:09:28+00:00
State: open

Currently, `LabelBinarizer` encodes the positive and negative labels with 1 and 0 by default and this cannot be changed. It would be nice if the user could specify the encoding with `LabelBinarizer(pos_label=1, neg_label=-1)`.