Skip to content

DOC: Clarify criterion is passes to the base estimators #31838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdhvgoyal
Copy link

Reference Issues/PRs

Closes #27159

What does this implement/fix? Explain your changes.

Clarifies that the 'criterion' parameter is passed to the underlying Decision Tree estimators.

Any other comments?

Copy link

❌ Linting issues

This PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling pre-commit hooks. Instructions to enable them can be found here.

You can see the details of the linting issues under the lint job here


ruff check

ruff detected issues. Please run ruff check --fix --output-format=full locally, fix the remaining issues, and push the changes. Here you can see the detected issues. Note that the installed ruff version is ruff=0.11.7.


sklearn/ensemble/_forest.py:1212:89: E501 Line too long (93 > 88)
     |
1210 |         "gini" for the Gini impurity and "log_loss" and "entropy" both for the
1211 |         Shannon information gain, see :ref:`tree_mathematical_formulation`.
1212 |         Note: This parameter is passed to the underlying "DecisionTreeClassifier" estimators.
     |                                                                                         ^^^^^ E501
1213 |
1214 |     max_depth : int, default=None
     |

Found 1 error.

Generated for commit: ede0d12. Link to the linter CI: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RandomForest{Classifier,Regressor} split criterion documentation
1 participant