-
Notifications
You must be signed in to change notification settings - Fork 552
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
RF node queue rewrite #4125
RF node queue rewrite #4125
Conversation
tree_.size(), | ||
node.count, | ||
node.info.unique_id); | ||
num_leaves_++; |
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 am not sure why leaf count is incremented here. Is it utilizing the property of binary tree that number of intermediate and leaf nodes in a tree are same? If so, may be we can consider adding a line of comment to describe this clever idea :-)
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.
At this point we are 'opening' a node, turning one leaf node into 2 leaf nodes, hence the +1.
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.
Thanks to @venkywonka for doing another pass over the code.
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.
Changes look good to me.
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-21.10 #4125 +/- ##
===============================================
Coverage ? 85.96%
===============================================
Files ? 232
Lines ? 18500
Branches ? 0
===============================================
Hits ? 15904
Misses ? 2596
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@gpucibot merge |
Node queue rewrite. With this PR the max_leaves parameter works as expected and these tests are now enabled. Benchmarks: ![gbm_bench](https://user-images.githubusercontent.com/7307640/127954882-6f3ed675-9410-4bbf-910f-29182901f81d.png) Authors: - Rory Mitchell (https://github.com/RAMitchell) Approvers: - Vinay Deshpande (https://github.com/vinaydes) - Venkat (https://github.com/venkywonka) - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#4125
Node queue rewrite. With this PR the max_leaves parameter works as expected and these tests are now enabled.
Benchmarks: