Skip to content

DOC add link to plot_gpr_noisy_targets example in _gpr.py - #30850

Merged
adrinjalali merged 4 commits into
scikit-learn:mainfrom
emma-carballal:add_links
Feb 19, 2025
Merged

adrinjalali merged 4 commits into
scikit-learn:mainfrom
emma-carballal:add_links

Conversation

@emma-carballal

@emma-carballal emma-carballal commented Feb 18, 2025 •

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Towards #30621

What does this implement/fix? Explain your changes.

@StefanieSenger This is a first contribution in preparation for the PyLadies scikit-learn contribution sprint, and I selected this issue as a good-first-issue to improve documentation.

This PR adds a link to example plot_gpr_noisy_targets.py (Gaussian Processes regression: basic introductory example) in the docstring of the parameter alpha of the GaussianProcessRegressor class in scikit-learn/sklearn/gaussian_process/_gpr.py
The example uses alpha=noise_std**2 to handle noisy targets, illustrating its application.

Any other comments?

I've checked a test build of the documentation to make sure it renders correctly.
This example is already linked in the Examples section of 1.7.1. Gaussian Process Regression of the User Guide.

@github-actions

github-actions Bot commented Feb 18, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 8756c76. Link to the linter CI: here

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That looks very good. Thank you @emma-carballal!

Just a little nit.

The failing checks are due to failing http requests and should vanish once the CI is triggered again with the push to add the dot.

Comment thread sklearn/gaussian_process/_gpr.py Resolved
@StefanieSenger

Copy link
Copy Markdown
Member

I think this is ready to merge. Would you have a look @adrinjalali or @marenwestermann?

@adrinjalali
adrinjalali merged commit 6a2472f into scikit-learn:main Feb 19, 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.

3 participants