-
Notifications
You must be signed in to change notification settings - Fork 527
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
float64 support in treelite->FIL import and Python layer #4690
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.
LGTM overall. I appreciate how we avoided cluttering the API with float32 and float64 flavors by using std::variant
instead.
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-22.06 #4690 +/- ##
===============================================
Coverage ? 84.06%
===============================================
Files ? 252
Lines ? 20356
Branches ? 0
===============================================
Hits ? 17113
Misses ? 3243
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
rerun tests |
std::vector<std::uint32_t> left_categories; | ||
if (dense_node.is_leaf()) { | ||
switch (ps.leaf_algo) { | ||
switch (this->ps.leaf_algo) { |
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.
Why is this->
necessary here?
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.
See the next comment.
@gpucibot merge |
`float64` support in treelite->FIL import and Python layer Authors: - Andy Adinets (https://github.com/canonizer) - Levs Dolgovs (https://github.com/levsnv) Approvers: - Philip Hyunsu Cho (https://github.com/hcho3) - William Hicks (https://github.com/wphicks) URL: rapidsai#4690
float64
support in treelite->FIL import and Python layer