Skip to content

Commit

Permalink
DOC labelbinarizer dense_output
Browse files Browse the repository at this point in the history
  • Loading branch information
rsivapr committed Sep 28, 2013
1 parent 60b6782 commit b8114f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/modules/preprocessing.rst
Expand Up @@ -370,7 +370,7 @@ matrix from a list of multi-class labels::

>>> lb = preprocessing.LabelBinarizer()
>>> lb.fit([1, 2, 6, 4, 2])
LabelBinarizer(neg_label=0, pos_label=1)
LabelBinarizer(dense_output=True, neg_label=0, pos_label=1)
>>> lb.classes_
array([1, 2, 4, 6])
>>> lb.transform([1, 6])
Expand Down

0 comments on commit b8114f0

Please sign in to comment.