Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DOC added reference to plot_grid_search_stats.py #30965

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 5 commits into
base: main
Choose a base branch
Loading
from

Conversation

Cheath2
Copy link

@Cheath2 Cheath2 commented Mar 9, 2025

Reference Issues/PRs

Towards #30621

What does this implement/fix? Explain your changes.

Added a reference to plot_grid_search_stats.py within the User manuals 'Analyzing results with the cv_results_ attribute' section.

Any other comments?

Copy link

github-actions bot commented Mar 9, 2025

✔️ Linting Passed

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

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

Copy link
Contributor

@StefanieSenger StefanieSenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Cheath2,

thanks for making this PR.

To be honest, I believe this link would be misplaced in the Halving*Search section. This section and the example both deal with cv_results_, but the section where you linked it focuses on explaining the structure of the results in Halving, while the example you linked is more about visualizing and interpreting GridSearchCV results graphically.
Also, the example is already linked above in the GridSearch section (line 106), where it seems better placed.

Since the example shows how to plot and interpret results using GridSearch's cv_results_ attribute, I would rather suggest to add it to the docstring of GridSearchCV in the attribute description of cv_results_.
Also probably change the description from "in-depth statistical analysis" to "visualization and interpretation of GridSearch results" or something similar.

Would you be up to do that? If so, you would also need to remove the desktop.ini file from your PR and only push the actual change. Thank you.

@Cheath2
Copy link
Author

Cheath2 commented Mar 10, 2025

Hello @StefanieSenger ,

Thank you for your guidance, I believe I have updated the PR per your instruction. I updated the verbiage, moved the example reference to the attribute description within cv_results_ docstring under the existing reference text, and addressed the .ini issue. Please let me know if any other changes are needed.

Copy link
Contributor

@StefanieSenger StefanieSenger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Cheath2, that looks very good.

Can we merge this, @adrinjalali?

@StefanieSenger
Copy link
Contributor

Can you please add a DOC in from of your PR title, @Cheath2?

@Cheath2 Cheath2 changed the title added reference to plot_grid_search_stats.py DOC added reference to plot_grid_search_stats.py Mar 11, 2025
Comment on lines +1449 to +1450
For an example of visualization and interpretation of GridSearch results,
see :ref:`sphx_glr_auto_examples_model_selection_plot_grid_search_stats.py`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like where this link is, but it could be also added to all the other 3 search cv classes where cv_results_ are present.

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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.