[python-package] LGBMRegressor.predict(...,pred_contrib=True)
does not average contribution from individual trees when boosting_type='rf'
#6217
Labels
Description
For a random forest model contributions are not averaged across individual trees.
Below you can see that the contributions (plus expectation) sum to the raw prediction (sum of predictions from trees in the random forest) but not to the average of predictions from trees in the random forest.
Reproducible example
Environment info
LightGBM version or commit hash:
Command(s) you used to install LightGBM
The text was updated successfully, but these errors were encountered: