-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG+1] Corrected sign error in QuantileLossFunction #6429
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
Conversation
@AlexisMignon if you're still around, please add a non-regression test, along the lines of #8087, and a what's new entry, might be all that's needed to get this merged. |
If @AlexisMignon doesn't handle this in a few days, you are welcome to complete the work, @ahyoussef |
LGTM please update what's new bug section |
(The travis failure appears unrelated. May be fixed by #8097) |
LGTM |
- Fix a bug where | ||
:class:`sklearn.ensemble.gradient_boosting.QuantileLossFunction` computed | ||
negative errors for negative values of ``ytrue - ypred`` leading to | ||
wrong values when calling ``__call__``. |
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 think this should go in a "Bug Fixes" rather than "Enhancements" section. Add a "Bug Fixes" section if there isn't one already.
Also add a link to the PR (with the issue
directive) and a link to your profile with the user
directive.
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.
Well most probably some git oddities since it is in the bug section in my version of the file. Resyncing with master does not help.
thx @AlexisMignon |
does this change any behavior? |
@amueller I don't think it does since internally only the gradient is used and their was no sign problem in the gradient formula. Needs some confirmation though. |
@amueller Same here: the crucial thing is the gradient and it was already correctly implemented. But it would be great if someone who knows all the details of the sklearn API could confirm. |
* Corrected sign error in QuantileLossFunction
* Corrected sign error in QuantileLossFunction
* Corrected sign error in QuantileLossFunction
* Corrected sign error in QuantileLossFunction
* Corrected sign error in QuantileLossFunction
There was an error sign for the computation of the QuantileLossFunction for negative errors.
giving:
While it should be positive all the time.