@@ -72,15 +72,15 @@ class ROSE(BaseOverSampler):
7272 >>> from imblearn.over_sampling import ROSE
7373 >>> from sklearn.datasets import make_classification
7474 >>> 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} })
7676 >>> X, y = make_classification(n_classes=3, class_sep=2,
7777 ... weights=[0.1, 0.7, 0.2], n_informative=3, n_redundant=1, flip_y=0,
7878 ... n_features=20, n_clusters_per_class=1, n_samples=2000, random_state=10)
7979 >>> 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} })
8181 >>> X_res, y_res = r.fit_resample(X, y)
8282 >>> 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} })
8484 """
8585
8686 @_deprecate_positional_args
0 commit comments