-
Notifications
You must be signed in to change notification settings - Fork 89
Remove unused fit_needs_proba parameter from objective class #320
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
Codecov Report
@@ Coverage Diff @@
## master #320 +/- ##
==========================================
+ Coverage 97.04% 97.14% +0.09%
==========================================
Files 96 96
Lines 2982 2974 -8
==========================================
- Hits 2894 2889 -5
+ Misses 88 85 -3
Continue to review full report at Codecov.
|
It is to my understanding that |
@jeremyliweishih oh, interesting. So you're saying that this flag would be used by a custom objective for regression? My understanding after reading the code was that we don't support custom objectives for regression, but you're causing me to think again. So you'd set |
To clarify: the flag is being used to denote whether an objective needs to fit using predicted probabilities or predicted labels/values. In the case of our two custom objectives, they both require the predicted probability but I can imagine in the future where a custom objective would need predicted labels/values instead. |
@jeremyliweishih right, I agree. This parameter would be useful to support a future feature where custom objectives can pass non-probabilities into |
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.
good to merge, unless we want to hold off for full redesign.
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.
LGTM, but as Max suggested, would it be better to wait until our design is settled on and fix it afterwards? :o
6ecde08
to
3c09065
Compare
Thanks for the reviews. I'm gonna merge this! Deleting code is one of my favorite things to do 😁🎊 To summarize / for future reference: my understanding of what |
I don't see this parameter used anywhere in our codebase and would like to delete it
After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of
docs/source/changelog.rst
to include this pull request by adding :pr:123
.