We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 211c916 + 027eb6d commit ec2a89aCopy full SHA for ec2a89a
sklearn/ensemble/forest.py
@@ -444,8 +444,10 @@ def _validate_y_class_weight(self, y):
444
def predict(self, X):
445
"""Predict class for X.
446
447
- The predicted class of an input sample is computed as the majority
448
- prediction of the trees in the forest.
+ The predicted class of an input sample is a vote by the trees in
+ the forest, weighted by their probability estimates. That is,
449
+ the predicted class is the one with highest mean probability
450
+ estimate across the trees.
451
452
Parameters
453
----------
0 commit comments