Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Rework plot_ard.py example #22747

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 30 commits into from
Apr 21, 2022
Merged

Conversation

ArturoAmorQ
Copy link
Member

@ArturoAmorQ ArturoAmorQ commented Mar 10, 2022

Reference Issues/PRs

Fixes #20740.

What does this implement/fix? Explain your changes.

The example on ARDRegression plot_ard.py stopped working since the release 0.23.
This PR fixes it and reworks the example to:

  • use notebook style progression
  • use make_regression to create the synthetic dataset
  • use heatmap to visualize regression coefficients
  • include comparison with Bayesian Ridge

Any other comments?

This PR would make the example on BayesianRidge plot_bayesian_ridge.py redundant.
One possibility is to suppress it in favor of this reworked example.

@jjerphan jjerphan self-requested a review March 11, 2022 09:51
@glemaitre glemaitre self-requested a review March 15, 2022 14:49
Copy link
Member

@jjerphan jjerphan 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 for the revamp of this example, @ArturoAmorQ.

To me, it is much better than before.

Here are some suggestions. Also, I wanted to suggest some changes to improve the section on ARD but couldn't. You can find them in this commit: jjerphan@ede9eec.

@ArturoAmorQ
Copy link
Member Author

Thanks for the comments, @jjerphan!

You can find them in this commit: jjerphan@ede9eec.

How do I fetch/implement your commit?

@jjerphan
Copy link
Member

@ArturoAmorQ: if you give me rights to create PRs to your repo, then I can create a PR for this specific commit.

Alternatively if you add my fork as a remote and fetch its content, you should then be able to cherry-pick the commit.

git remote add jjerphan [email protected]:jjerphan/scikit-learn.git
git fetch jjerphan
git cherry-pick ede9eec

@ArturoAmorQ
Copy link
Member Author

@ArturoAmorQ: if you give me rights to create PRs to your repo, then I can create a PR for this specific commit.

Alternatively if you add my fork as a remote and fetch its content, you should then be able to cherry-pick the commit.

git remote add jjerphan [email protected]:jjerphan/scikit-learn.git
git fetch jjerphan
git cherry-pick ede9eec

I did both, in case it's needed in the future. Thanks again!

Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you, @ArturoAmorQ!

@glemaitre
Copy link
Member

This PR would make the example on BayesianRidge plot_bayesian_ridge.py redundant.
One possibility is to suppress it in favor of this reworked example.

We should remove this example. We only need to create a redirection of this suppressed example to the new one at the following location in the doc conf.py:

https://github.com/scikit-learn/scikit-learn/blob/main/doc/conf.py#L249-L256

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

@ArturoAmorQ ArturoAmorQ requested a review from glemaitre April 21, 2022 09:42
@ArturoAmorQ
Copy link
Member Author

Thanks for your time and comments @jjerphan and @glemaitre :)

@glemaitre glemaitre merged commit d71bfe1 into scikit-learn:main Apr 21, 2022
@glemaitre
Copy link
Member

Thanks @ArturoAmorQ LGTM

@ArturoAmorQ ArturoAmorQ deleted the plot_ard_fix branch April 25, 2022 08:32
jjerphan added a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
Co-authored-by: Julien Jerphanion <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Wrong illustration for ARD
3 participants