8000 DOC added sentence about oob_decision_function_ containing NaN to doc… · scikit-learn/scikit-learn@73d3d3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 73d3d3f

Browse files
committed
DOC added sentence about oob_decision_function_ containing NaN to docstring. Still need some narrative about oob score.
1 parent c9877e9 commit 73d3d3f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sklearn/ensemble/forest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,9 @@ class labels (multi-output problem).
788788
789789
`oob_decision_function_` : array of shape = [n_samples, n_classes]
790790
Decision function computed with out-of-bag estimate on the training
791-
set.
791+
set. If n_estimators is small it might be possible that a data point
792+
was never left out during the bootstrap. In this case,
793+
`oob_decision_function_` might contain NaN.
792794
793795
References
794796
----------
@@ -1064,7 +1066,9 @@ class labels (multi-output problem).
10641066
10651067
`oob_decision_function_` : array of shape = [n_samples, n_classes]
10661068
Decision function computed with out-of-bag estimate on the training
1067-
set.
1069+
set. If n_estimators is small it might be possible that a data point
1070+
was never left out during the bootstrap. In this case,
1071+
`oob_decision_function_` might contain NaN.
10681072
10691073
References
10701074
----------

0 commit comments

Comments
 (0)
0