Skip to content

Commit 321b751

Browse files
committed
DOC fix docstring
1 parent 25ff4b5 commit 321b751

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/ensemble.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ each tree of the forest will be provided a balanced bootstrap sample
7878
BalancedRandomForestClassifier(...)
7979
>>> y_pred = brf.predict(X_test)
8080
>>> balanced_accuracy_score(y_test, y_pred) # doctest: +ELLIPSIS
81-
0.80...
82-
>>> brf.feature_importances_ # doctest: +ELLIPSIS
83-
array([ 0.57..., 0.42...])
81+
0.8...
8482

8583
.. _boosting:
8684

@@ -99,7 +97,7 @@ a boosting iteration [SKHN2010]_::
9997
RUSBoostClassifier(...)
10098
>>> y_pred = rusboost.predict(X_test)
10199
>>> balanced_accuracy_score(y_test, y_pred) # doctest: +ELLIPSIS
102-
0.66...
100+
0.6...
103101

104102
A specific method which uses ``AdaBoost`` as learners in the bagging classifier
105103
is called EasyEnsemble. The :class:`EasyEnsembleClassifier` allows to bag
@@ -113,7 +111,7 @@ ensemble as::
113111
EasyEnsembleClassifier(...)
114112
>>> y_pred = eec.predict(X_test)
115113
>>> balanced_accuracy_score(y_test, y_pred) # doctest: +ELLIPSIS
116-
0.62...
114+
0.6...
117115

118116
.. topic:: Examples
119117

0 commit comments

Comments
 (0)