Skip to content

enabled quantile regression in gbm #2603

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 14 commits into from
Jun 25, 2019
Merged

enabled quantile regression in gbm #2603

merged 14 commits into from
Jun 25, 2019

Conversation

bthieurmel
Copy link
Contributor

We are always happy to receive pull requests.

Please make sure you have read our coding guidelines:
https://github.com/mlr-org/mlr/wiki/mlr-Coding-Guidelines

This especially means that you have understood:

  • The style guide - our lintr will provide you feedback on this
  • How to run tests locally. Yes, travis will also run them for you, bad it is annoying to wait for this.
  • How to run R CMD CHECK locally. See point before.

Also it's helpful to get into direct contact with the suggested reviewers to get help, getting your PR merged.
You might want to join our slack at:
https://mlr-org.slack.com

Copy link
Member

@pat-s pat-s left a comment

Choose a reason for hiding this comment

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

Thanks. Please see my comments. Also please add an entry to NEWS.md.

NEWS.md Outdated
@@ -11,6 +11,7 @@
See `?regr.randomForest` for more details.
`regr.ranger` relies on the functions provided by the package ("jackknife" and "infjackknife" (default))
(@jakob-r, #1784)
- `regr.gbm` now supports `quantile distribution`
Copy link
Member

Choose a reason for hiding this comment

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

Also add your username and the PR number please.

@pat-s
Copy link
Member

pat-s commented Jun 17, 2019

Thanks. Only one comment left from my side.

Please take a look why the test is failing and tell us if you need help.

Looks almost ready to merge 👍

@bthieurmel
Copy link
Contributor Author

Seems to be ok (missing ! and so don't pass weights information....)

gbm::gbm(f, data = getTaskData(.task, .subset), ...)

params = list(...)
if("alpha" %in% names(params)) {
Copy link
Member

Choose a reason for hiding this comment

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

Space after if and I would check whether params$alpha is NULL for consistency with how it's set below.

gbm::gbm(f, data = getTaskData(.task, .subset), weights = .weights, ...)
alpha = 0.5
}
if(params$distribution %in% "quantile") {
Copy link
Member

Choose a reason for hiding this comment

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

Space after if and should that check be simply ==?

@pat-s
Copy link
Member

pat-s commented Jun 18, 2019

For style, you can simply apply the mlr style guide. (in case you haven't already)

@pat-s
Copy link
Member

pat-s commented Jun 24, 2019

@larskotthoff If you approve, feel free to merge. We can run the style fixer afterwards. Applying it on a forked branch is not easy.

@larskotthoff
Copy link
Member

Merging.

@larskotthoff larskotthoff merged commit 98b0b71 into mlr-org:master Jun 25, 2019
vrodriguezf pushed a commit to vrodriguezf/mlr that referenced this pull request Jan 16, 2021
* enabled quantile regression in gbm

* add requires quantile for alpha

* style guide

* mutualize

* Rm quantile note

* Update NEWS

* gbm : add quantile test

* add name + PR

* fix typo using weights (and so error on tests...)

* space after if + simplify condition
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