@@ -72,15 +72,15 @@ class ROSE(BaseOverSampler):
72
72
>>> from imblearn.over_sampling import ROSE
73
73
>>> from sklearn.datasets import make_classification
74
74
>>> from collections import Counter
75
- >>> r = ROSE(shrink_factors={0:1, 1:0.5, 2:0.7})
75
+ >>> r = ROSE(shrink_factors={{ 0:1, 1:0.5, 2:0.7} })
76
76
>>> X, y = make_classification(n_classes=3, class_sep=2,
77
77
... weights=[0.1, 0.7, 0.2], n_informative=3, n_redundant=1, flip_y=0,
78
78
... n_features=20, n_clusters_per_class=1, n_samples=2000, random_state=10)
79
79
>>> print('Original dataset shape %s' % Counter(y))
80
- Original dataset shape Counter({1: 1400, 2: 400, 0: 200})
80
+ Original dataset shape Counter({{ 1: 1400, 2: 400, 0: 200} })
81
81
>>> X_res, y_res = r.fit_resample(X, y)
82
82
>>> print('Resampled dataset shape %s' % Counter(y_res))
83
- Resampled dataset shape Counter({2: 1400, 1: 1400, 0: 1400})
83
+ Resampled dataset shape Counter({{ 2: 1400, 1: 1400, 0: 1400} })
84
84
"""
85
85
86
86
@_deprecate_positional_args
0 commit comments