Skip to content

Commit c0aa81c

Browse files
committed
DOC be more flexible for 32 bits arch
1 parent aff4125 commit c0aa81c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

imblearn/ensemble/_forest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,8 @@ class labels (multi-output problem).
234234
>>> clf = BalancedRandomForestClassifier(max_depth=2, random_state=0)
235235
>>> clf.fit(X, y) # doctest: +ELLIPSIS
236236
BalancedRandomForestClassifier(...)
237-
>>> print(clf.feature_importances_)
238-
[ 0.21506735 0.0104961 0.00706549 0.17414694 0.00556422 0.00704686
239-
0.19779549 0.01865445 0.00608294 0.00490484 0.00866699 0.00251414
240-
0.00339721 0.01174379 0.09380596 0.05049964 0.0033278 0.01008566
241-
0.15534173 0.01379241]
237+
>>> print(clf.feature_importances_) # doctest: +ELLIPSIS
238+
[...]
242239
>>> print(clf.predict([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
243240
... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]))
244241
[1]

imblearn/under_sampling/_prototype_selection/_instance_hardness_threshold.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class InstanceHardnessThreshold(BaseUnderSampler):
100100
Original dataset shape Counter({{1: 900, 0: 100}})
101101
>>> iht = InstanceHardnessThreshold(random_state=42)
102102
>>> X_res, y_res = iht.fit_resample(X, y)
103-
>>> print('Resampled dataset shape %s' % Counter(y_res))
104-
Resampled dataset shape Counter({{1: 574, 0: 100}})
103+
>>> print('Resampled dataset shape %s' % Counter(y_res)) # doctest: +ELLIPSIS
104+
Resampled dataset shape Counter({{1: 5..., 0: 100}})
105105
106106
"""
107107

0 commit comments

Comments
 (0)