ENH reuse parent histogram in HGBT#26189
Open
lorentzenchr wants to merge 17 commits intoscikit-learn:mainfrom
Open
ENH reuse parent histogram in HGBT#26189lorentzenchr wants to merge 17 commits intoscikit-learn:mainfrom
lorentzenchr wants to merge 17 commits intoscikit-learn:mainfrom
Conversation
Member
Author
Simple benchmarkOn the higgs dataset, this PR gives ~4% speed-up, which is about the expected amount (1 / 28 features = 3.5%). Running on main gives On this PR: |
thomasjpfan
reviewed
Apr 17, 2023
9fb9006 to
b1efb34
Compare
thomasjpfan
reviewed
Jan 21, 2024
Member
There was a problem hiding this comment.
Although I do not think this change is too complex, it still adds more complexity to the codebase. Overall, do you think the complexity is worth the 1-1/n_features performance bump?
Member
|
@lorentzenchr: should we continue and merge this PR, or not? |
Member
Author
Only if I get the commitment of 2 core devs willing to review and finally approve. |
Member
|
I would be glad reviewing this PR, but I would rather finish what I started first. |
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.
This PR reuses the parent's histogram for the feature that was split on. This saves a little time.
Any other comments?
The implementation is no beauty. If we want to include this improvement, suggestions or alternative PRs are welcome.