Skip to content

Commit 4c73847

Browse files
committed
DOC sort dict for doctest
1 parent e2a75a5 commit 4c73847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imblearn/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class FunctionSampler(SamplerMixin):
6969
>>> sampler = FunctionSampler(func=func,
7070
... kw_args={'ratio': 'auto', 'random_state': 0})
7171
>>> X_res, y_res = sampler.fit_sample(X, y)
72-
>>> print('Resampled dataset shape {}'.format(Counter(y_res)))
73-
Resampled dataset shape Counter({1: 268, -1: 268})
72+
>>> print('Resampled dataset shape {}'.format(sorted(Counter(y_res))))
73+
Resampled dataset shape Counter({-1: 268, 1: 268})
7474
7575
"""
7676

0 commit comments

Comments
 (0)