We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cc1fae commit 47f61b1Copy full SHA for 47f61b1
sklearn/preprocessing/tests/test_label.py
@@ -661,12 +661,12 @@ def test_encode_check_unknown():
661
def test_multilabel_histogram():
662
mlh = MultiLabelHistogram()
663
y = [{1: 5.5, 2: -3.0}, {3: 999}]
664
- Y = np.array([[ 5.5 -3. 0. ],
665
- [ 0. 0. 999. ]])
+ Y = np.array([[ 5.5, -3., 0. ],
+ [ 0., 0., 999. ]])
666
assert_allclose(mlh.fit_transform(y), Y)
667
668
669
y = [{'sci-fi': -2.0, 'thriller': 5.0}, {'comedy': 0.1}]
670
- Y = np.array([[ 0. -2. 5. ],
671
- [ 0.1 0. 0. ]])
+ Y = np.array([[ 0., -2., 5. ],
+ [ 0.1, 0., 0. ]])
672
0 commit comments