Skip to content

Commit fbb32ea

Browse files
authored
DOC fix docstring of RandomForestClassifier stating dependance from regression trees (scikit-learn#30035)
1 parent be52df5 commit fbb32ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/ensemble/_forest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ class RandomForestClassifier(ForestClassifier):
11801180
classifiers on various sub-samples of the dataset and uses averaging to
11811181
improve the predictive accuracy and control over-fitting.
11821182
Trees in the forest use the best split strategy, i.e. equivalent to passing
1183-
`splitter="best"` to the underlying :class:`~sklearn.tree.DecisionTreeRegressor`.
1183+
`splitter="best"` to the underlying :class:`~sklearn.tree.DecisionTreeClassifier`.
11841184
The sub-sample size is controlled with the `max_samples` parameter if
11851185
`bootstrap=True` (default), otherwise the whole dataset is used to build
11861186
each tree.

0 commit comments

Comments
 (0)