Repository navigation
FEA Add staged_predict to HistGradientBoosting - #16985
Conversation
|
thanks for the PR @haochunchang , please ping me when you are ready to get reviews or if you need any help |
|
I have also checked with an example: test_staged_predict_example.txt (adopted from here). In short, I moved part of the original I wasn't sure whether the change is what I would be very appreciated for @NicolasHug or anyone who reviews this code and gives any directions for checking :) |
NicolasHug
left a comment
There was a problem hiding this comment.
Thanks @haochunchang , it looks in good shape!
I made a few comments, mostly on the style.
Do you also want to add support for the classifier?
hmm, use your best judgement. It'd be fine eitherway. Also note that we don't need the first one if you do the second |
11c3232 to
b921b3a
Compare
b921b3a to
05cd4fc
Compare
|
For simplicity, I added only one test for testing staged_predict.
|
|
I would be very appreciated for @NicolasHug or anyone who reviews this code and gives any directions for checking :) |
NicolasHug
left a comment
There was a problem hiding this comment.
thanks for your patience @haochunchang , we've been busy with the release
This mostly looks good, I'd just suggest to also add staged_predict_proba and staged_decision_function which should be pretty easy now that you have it all laid out.
2bfe890 to
700ba6e
Compare
|
Good effort for the release! @NicolasHug |
NicolasHug
left a comment
There was a problem hiding this comment.
thanks @haochunchang , almost there
700ba6e to
a20a7c8
Compare
a20a7c8 to
ae55f9b
Compare
ae55f9b to
3bddc63
Compare
|
maybe @amueller @thomasjpfan can review this one? |
3bddc63 to
b76daa3
Compare
b76daa3 to
9d66d76
Compare
|
Thanks @haochunchang ! Sorry we forgot to mention earlier: we'll need a what's new entry: Please add an entry to the change log at You can take inspiration from the 0.23 what'snew if you need |
Co-authored-by: Nicolas Hug <[email protected]>
9d66d76 to
e9931e5
Compare
|
Thanks for the work and for your patience @haochunchang ! Just a side note for you next contributions: you don't need to force-push changes, we're always going to squash and merge anyway. When you force push it makes things a little bit harder for us if we have already checked-out your branch ;) |
|
Got it! |

Reference Issues/PRs
Try Fixes #16063
What does this implement/fix? Explain your changes.
Add staged_predict by emulating BaseGradientBoosting. Including private functions.
Any other comments?
This is my first PR for a feature request.
I would be very appreciated for any advices or collaborations.