Skip to content

Commit 47f61b1

Browse files
committed
format test code
1 parent 2cc1fae commit 47f61b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sklearn/preprocessing/tests/test_label.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,12 +661,12 @@ def test_encode_check_unknown():
661661
def test_multilabel_histogram():
662662
mlh = MultiLabelHistogram()
663663
y = [{1: 5.5, 2: -3.0}, {3: 999}]
664-
Y = np.array([[ 5.5 -3. 0. ],
665-
[ 0. 0. 999. ]])
664+
Y = np.array([[ 5.5, -3., 0. ],
665+
[ 0., 0., 999. ]])
666666
assert_allclose(mlh.fit_transform(y), Y)
667667

668668
mlh = MultiLabelHistogram()
669669
y = [{'sci-fi': -2.0, 'thriller': 5.0}, {'comedy': 0.1}]
670-
Y = np.array([[ 0. -2. 5. ],
671-
[ 0.1 0. 0. ]])
670+
Y = np.array([[ 0., -2., 5. ],
671+
[ 0.1, 0., 0. ]])
672672
assert_allclose(mlh.fit_transform(y), Y)

0 commit comments

Comments
 (0)