8000 FIX: workaround what looks like a numerical instability in doctest · larsmans/scikit-learn@50d8ac2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50d8ac2

Browse files
committed
FIX: workaround what looks like a numerical instability in doctest
1 parent 902dbdc commit 50d8ac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/ensemble.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ slightly greater increase in bias::
8686
>>> clf = ExtraTreesClassifier(n_estimators=10, max_depth=None,
8787
... min_split=1, random_state=0)
8888
>>> scores = cross_val_score(clf, X, y)
89-
>>> scores.mean() # doctest: +ELLIPSIS
90-
0.999...
89+
>>> scores.mean() > 0.999
90+
True
9191

9292
The main parameters to adjust when using these methods is ``n_estimators``
9393
and ``max_features``. The former is the number of trees in the

0 commit comments

Comments
 (0)
0