Skip to content

DOC Fix misleading statement about model refitting in permutation importance docs #31596

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

Merged
merged 1 commit into from
Jun 24, 2025

Conversation

GaetandeCast
Copy link
Contributor

What does this implement/fix? Explain your changes.

The current documentation incorrectly states that the model is refitted during permutation importance in the plot_forest_importances.py example. This PR corrects the description to clarify that the model is not refitted: predictions are made on permuted data to measure performance drop.

Cc: @ogrisel @antoinebaker

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 46a2fa7. Link to the linter CI: here

@ogrisel ogrisel merged commit bd60ea7 into scikit-learn:main Jun 24, 2025
39 checks passed
@GaetandeCast GaetandeCast deleted the rf_fi_example branch June 24, 2025 15:16
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.

2 participants