Skip to content

DOC add link to plot_cv_predict example in cross_val_predict docstring(#30621) #31518

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

Conversation

VirenPassi
Copy link

Reference Issues/PRs
Fixes #30621.

What does this implement/fix?
Added an inline reference link to the plot_cv_predict.py example from examples/model_selection/ in the cross_val_predict docstring (located in sklearn/model_selection/_validation.py). This enhances discoverability by allowing users to directly access relevant usage examples from the API documentation.

These changes are documentation-only and do not affect code functionality.

When convenient, could you also look at my earlier PR for plot_rfe_with_cross_validation.py? Thank you for your continued guidance!

Copy link

✔️ Linting Passed

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

Generated for commit: 075f381. Link to the linter CI: here

@VirenPassi VirenPassi changed the title DOC add link to plot_cv_predict example in cross_val_predict docstring DOC add link to plot_cv_predict example in cross_val_predict docstring#30621 Jun 10, 2025
@VirenPassi VirenPassi changed the title DOC add link to plot_cv_predict example in cross_val_predict docstring#30621 DOC add link to plot_cv_predict example in cross_val_predict docstring(#30621) Jun 10, 2025
Copy link
Member

@virchan virchan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @VirenPassi!

@sisird864 already claimed the the plot_cv_predict.py example in #31504.

Therefore, I'm closing this PR.

Feel free to pick another example from the meta issue #30621 if you want to work on something else.

@virchan virchan closed this Jun 10, 2025
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.

Add links to examples from the docstrings and user guide
2 participants