Skip to content

Commit 9cfa1f3

Browse files
jnothmanogrisel
authored andcommitted
TST stronger test for non-integers in MultiLabelBinarizer
1 parent fc0150d commit 9cfa1f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sklearn/preprocessing/tests/test_label.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def test_mutlilabel_binarizer_non_integer_labels():
351351
tuple_classes[:] = [(1,), (2,), (3,)]
352352
inputs = [
353353
([('2', '3'), ('1',), ('1', '2')], ['1', '2', '3']),
354+
([('b', 'c'), ('a',), ('a', 'b')], ['a', 'b', 'c']),
354355
([((2,), (3,)), ((1,),), ((1,), (2,))], tuple_classes),
355356
]
356357
indicator_mat = np.array([[0, 1, 1],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy