Skip to content

Commit

Permalink
DOC be more flexible for 32 bits arch
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Jun 12, 2019
1 parent aff4125 commit c0aa81c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions imblearn/ensemble/_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,8 @@ class labels (multi-output problem).
>>> clf = BalancedRandomForestClassifier(max_depth=2, random_state=0)
>>> clf.fit(X, y) # doctest: +ELLIPSIS
BalancedRandomForestClassifier(...)
>>> print(clf.feature_importances_)
[ 0.21506735 0.0104961 0.00706549 0.17414694 0.00556422 0.00704686
0.19779549 0.01865445 0.00608294 0.00490484 0.00866699 0.00251414
0.00339721 0.01174379 0.09380596 0.05049964 0.0033278 0.01008566
0.15534173 0.01379241]
>>> print(clf.feature_importances_) # doctest: +ELLIPSIS
[...]
>>> print(clf.predict([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
... 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]))
[1]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class InstanceHardnessThreshold(BaseUnderSampler):
Original dataset shape Counter({{1: 900, 0: 100}})
>>> iht = InstanceHardnessThreshold(random_state=42)
>>> X_res, y_res = iht.fit_resample(X, y)
>>> print('Resampled dataset shape %s' % Counter(y_res))
Resampled dataset shape Counter({{1: 574, 0: 100}})
>>> print('Resampled dataset shape %s' % Counter(y_res)) # doctest: +ELLIPSIS
Resampled dataset shape Counter({{1: 5..., 0: 100}})
"""

Expand Down

0 comments on commit c0aa81c

Please sign in to comment.