Skip to content
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

Restore support for old binary XGBoost models #547

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Feb 14, 2024

XGBoost models from 2 years ago (1.5 or older) won't have num_target field in the model. The model parser shouldn't fail if num_target is 0.

Copy link

codecov bot commented Feb 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ffa3fdb) 84.25% compared to head (bcdf694) 84.35%.

Additional details and impacted files
@@             Coverage Diff              @@
##           mainline     #547      +/-   ##
============================================
+ Coverage     84.25%   84.35%   +0.10%     
============================================
  Files            70       70              
  Lines          6064     6066       +2     
  Branches        510      510              
============================================
+ Hits           5109     5117       +8     
+ Misses          955      949       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hcho3 hcho3 merged commit 4477280 into dmlc:mainline Feb 14, 2024
18 checks passed
@hcho3 hcho3 deleted the fix_xgb_old_model branch February 14, 2024 17:22
rapids-bot bot pushed a commit to rapidsai/cuml that referenced this pull request Apr 1, 2024
Treelite 4.1.2 contains important bug fixes such as:
* dmlc/treelite#547
* dmlc/treelite#552
* dmlc/treelite#553

Authors:
  - Philip Hyunsu Cho (https://github.com/hcho3)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)
  - Ray Douglass (https://github.com/raydouglass)

URL: #5814
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant