-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
ENH improve init_root of HGBT TreeGrower #30875
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
ENH improve init_root of HGBT TreeGrower #30875
Conversation
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.
Codewise, I think this looks better.
Do you have a quick benchmark to show the slight improvement?
Some very rough benchmark numbers running main branch
PR branch
While the difference is within the variation, running several times confirms the slight difference. |
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
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.
Thank you for the PR @lorentzenchr
I just have one question, otherwise looks good.
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. Thank you @lorentzenchr
Reference Issues/PRs
None
What does this implement/fix? Explain your changes.
This PR improves the (compute/time) performance of HGBT a little bit by reducing a sum over n_samples in each new root node to a sum over n_bins.
Any other comments?
This also makes the Cython function
sum_parralel
obsolete.