-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC use notebook-style in ensemble/plot_adaboost_regression.py #23263
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
DOC use notebook-style in ensemble/plot_adaboost_regression.py #23263
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @svenstehle for your pull request.
Minor comment, otherwise looks good to me.
@@ -9,26 +9,38 @@ | |||
regressor. As the number of boosts is increased the regressor can fit more | |||
detail. | |||
|
|||
.. [1] H. Drucker, "Improving Regressors using Boosting Techniques", 1997. | |||
.. [1] H Drucker, "Improving Regressors using Boosting Techniques", 1997. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind adding the link to the proceeding?
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.21.5683&rep=rep1&type=pdf
I could not find the DOI (perhaps the article is still too old)... if by any chance you can find it, you might want to use the :doi: directive for the link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed the small nitpicks proposed by @cmarmo and we can merge (just small last check on the rendering).
…nto doc_ensemble_plot_adaboost_regression
Thanks for your reviews and the edit @cmarmo and @glemaitre :) I took the liberty of pushing that tiny change, hope that's alright |
@glemaitre the doi is not correctly resolved. It points to another article about SVM optimization. |
You are correct @cmarmo. I am a bit embarrassed that I did not see it. Good of you to double-check this! :D |
Thanks @svenstehle ! If you can't find the DOI perhaps the bare link will be enough. Thanks. |
I tried a few approaches to use the DOI, each one failed. DOI never gets resolved.
I managed to introduce the link to the pdf though. Sphinx syntax is weird. Even though that approach seems a bit brittle to me. Do you prefer linking to the summary page? I am good with it either way. |
mmhhh.. You are right...
The link to the summary is probably better as long as the link for the download is in the page. Thanks for your patience! |
…ings) is available
Sure thing :) I updated the link to point to the summary page. |
Thanks @svenstehle It looks good. Merging. |
…t-learn#23263) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
…t-learn#23263) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Successfully merging this pull request may close these issues.
Reference Issues/PRs
Updates ensemble/plot_adaboost_regression.py
For Issue #22406
What does this implement/fix? Explain your changes.
Updated the example plot_adaboost_regression.py to notebook style.
Had to reshape array to deal with matplotlib warning8
with the correctH
inH Drucker
. Had to drop the.
though. It was the culprit for some reasonTrain and predict with AdaBoost and DecisionTree Regressors
. Happy to reword this though, just a first draftAny other comments?
Happy to receive feedback and implement improvements.