Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcb2417

Browse files
jnothmanogrisel
authored andcommitted
No set construction shorthand in Py2.6
1 parent 5b4a3c8 commit dcb2417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/preprocessing/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class MultiLabelBinarizer(BaseEstimator, TransformerMixin):
468468
[0, 0, 1]])
469469
>>> mlb.classes_ # doctest: +ELLIPSIS
470470
array([1, 2, 3]...)
471-
>>> mlb.fit_transform([{1, 2}, {3,}])
471+
>>> mlb.fit_transform([set([1, 2]), set([3])])
472472
array([[1, 1, 0],
473473
[0, 0, 1]])
474474
"""

0 commit comments

Comments
 (0)