Skip to content

Commit 9c1217c

Browse files
committed
TYPO remove mutli (did you mean Muttley?)
1 parent 0fe0e22 commit 9c1217c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

sklearn/preprocessing/tests/test_label.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def test_label_encoder_errors():
225225
assert_raises(ValueError, le.inverse_transform, [])
226226

227227

228-
def test_sparse_output_mutlilabel_binarizer():
228+
def test_sparse_output_multilabel_binarizer():
229229
# test input as iterable of iterables
230230
inputs = [
231231
lambda: [(2, 3), (1,), (1, 2)],
@@ -265,7 +265,7 @@ def test_sparse_output_mutlilabel_binarizer():
265265
[1, 1, 0]])))
266266

267267

268-
def test_mutlilabel_binarizer():
268+
def test_multilabel_binarizer():
269269
# test input as iterable of iterables
270270
inputs = [
271271
lambda: [(2, 3), (1,), (1, 2)],
@@ -292,7 +292,7 @@ def test_mutlilabel_binarizer():
292292
assert_equal(mlb.inverse_transform(got), inverse)
293293

294294

295-
def test_mutlilabel_binarizer_empty_sample():
295+
def test_multilabel_binarizer_empty_sample():
296296
mlb = MultiLabelBinarizer()
297297
y = [[1, 2], [1], []]
298298
Y = np.array([[1, 1],
@@ -301,7 +301,7 @@ def test_mutlilabel_binarizer_empty_sample():
301301
assert_array_equal(mlb.fit_transform(y), Y)
302302

303303

304-
def test_mutlilabel_binarizer_unknown_class():
304+
def test_multilabel_binarizer_unknown_class():
305305
mlb = MultiLabelBinarizer()
306306
y = [[1, 2]]
307307
assert_raises(KeyError, mlb.fit(y).transform, [[0]])
@@ -310,7 +310,7 @@ def test_mutlilabel_binarizer_unknown_class():
310310
assert_raises(KeyError, mlb.fit_transform, [[0]])
311311

312312

313-
def test_mutlilabel_binarizer_given_classes():
313+
def test_multilabel_binarizer_given_classes():
314314
inp = [(2, 3), (1,), (1, 2)]
315315
indicator_mat = np.array([[0, 1, 1],
316316
[1, 0, 0],
@@ -337,7 +337,7 @@ def test_mutlilabel_binarizer_given_classes():
337337
assert_array_equal(mlb.fit(inp).transform(inp), indicator_mat)
338338

339339

340-
def test_mutlilabel_binarizer_same_length_sequence():
340+
def test_multilabel_binarizer_same_length_sequence():
341341
"""Ensure sequences of the same length are not interpreted as a 2-d array
342342
"""
343343
inp = [[1], [0], [2]]
@@ -355,7 +355,7 @@ def test_mutlilabel_binarizer_same_length_sequence():
355355
assert_array_equal(mlb.inverse_transform(indicator_mat), inp)
356356

357357

358-
def test_mutlilabel_binarizer_non_integer_labels():
358+
def test_multilabel_binarizer_non_integer_labels():
359359
tuple_classes = np.empty(3, dtype=object)
360360
tuple_classes[:] = [(1,), (2,), (3,)]
361361
inputs = [
@@ -383,7 +383,7 @@ def test_mutlilabel_binarizer_non_integer_labels():
383383
assert_raises(TypeError, mlb.fit_transform, [({}), ({}, {'a': 'b'})])
384384

385385

386-
def test_mutlilabel_binarizer_non_unique():
386+
def test_multilabel_binarizer_non_unique():
387387
inp = [(1, 1, 1, 0)]
388388
indicator_mat = np.array([[1, 1]])
389389
mlb = MultiLabelBinarizer()

sklearn/utils/multiclass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def unique_labels(*ys):
5353
- mix of label indicator matrices of different sizes
5454
- mix of string and integer labels
5555
56-
At the moment, we also don't allow "mutliclass-multioutput" input type.
56+
At the moment, we also don't allow "multiclass-multioutput" input type.
5757
5858
Parameters
5959
----------
@@ -238,7 +238,7 @@ def type_of_target(y):
238238
vector.
239239
* 'multiclass': `y` contains more than two discrete values, is not a
240240
sequence of sequences, and is 1d or a column vector.
241-
* 'mutliclass-multioutput': `y` is a 2d array that contains more
241+
* 'multiclass-multioutput': `y` is a 2d array that contains more
242242
than two discrete values, is not a sequence of sequences, and both
243243
dimensions are of size > 1.
244244
* 'multilabel-sequences': `y` is a sequence of sequences, a 1d

0 commit comments

Comments
 (0)