DOC Fix typos, wording in plot_gradient_boosting_regression.py#16894
Merged
thomasjpfan merged 2 commits intoscikit-learn:masterfrom Apr 11, 2020
Merged
DOC Fix typos, wording in plot_gradient_boosting_regression.py#16894thomasjpfan merged 2 commits intoscikit-learn:masterfrom
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
Conversation
thomasjpfan
reviewed
Apr 10, 2020
| # However there are many other options (check | ||
| # :class:`~sklearn.ensemble.GradientBoostingRegressor` to see what are | ||
| # other possibilities) | ||
| # loss : loss function to optimize. Least squares function used in this case |
Member
There was a problem hiding this comment.
Suggested change
| # loss : loss function to optimize. Least squares function used in this case | |
| # loss : loss function to optimize. The least squares function is used in this case |
|
|
||
| clf = ensemble.GradientBoostingRegressor(**params) | ||
| clf.fit(X_train, y_train) | ||
| reg = ensemble.GradientBoostingRegressor(**params) |
Member
There was a problem hiding this comment.
This change is much appreciated.
| # predictive feature, "bp", is also the same for the 2 methods. The remaining | ||
| # For this example, the impurity-based and permutation methods identify the | ||
| # same 2 strongly predictive features but not in the same order. The third most | ||
| # predictive feature, ``bp``, is also the same for the 2 methods. The remaining |
Member
There was a problem hiding this comment.
I am +0 on this change, since "bp" is not code.
Suggested change
| # predictive feature, ``bp``, is also the same for the 2 methods. The remaining | |
| # predictive feature, "bp", is also the same for the 2 methods. The remaining |
| # regression model. You can play with those parameters to see how the | ||
| # results change: | ||
| # for testing. We will also set the regression model parameters. You can play | ||
| # with these parameters to see how the results change: |
Member
There was a problem hiding this comment.
Suggested change
| # with these parameters to see how the results change: | |
| # with these parameters to see how the results change. |
NicolasHug
approved these changes
Apr 10, 2020
Member
NicolasHug
left a comment
There was a problem hiding this comment.
Thanks @lucyleeow , LGTM when comments are addressed
| # | ||
| # Finally, we will visualize the results. To do that we will first compute the | ||
| # test set deviance and then plot it. | ||
| # test set deviance and then plot it against boosting iteration. |
Member
There was a problem hiding this comment.
Suggested change
| # test set deviance and then plot it against boosting iteration. | |
| # test set deviance and then plot it against boosting iterations. |
Member
Author
|
Thanks @thomasjpfan and @NicolasHug. Suggestions added. |
thomasjpfan
approved these changes
Apr 11, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference Issues/PRs
None
What does this implement/fix? Explain your changes.
We set random state to be consistent with the result.as code below it does not userandom_statelossparameter does, which is done for all previous parametersclftoregin the code as this is regression modelAny other comments?