-
Notifications
You must be signed in to change notification settings - Fork 184
MAINT: Updates for XGBoost3.1 model structures #2741
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
base: main
Are you sure you want to change the base?
MAINT: Updates for XGBoost3.1 model structures #2741
Conversation
|
/intelci: run |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
tests/test_model_builders.py
Outdated
| xgb_model = treelite.frontend.from_xgboost(xgb_model) | ||
| try: | ||
| xgb_model = treelite.frontend.from_xgboost(xgb_model) | ||
| except Exception: |
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.
Any way you can catch a more specific exception 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.
It can fail in multiple ways which throw different errors, and it looks like the first error encountered here will be different in the next treelite release. It could be done, but this is just a temporary workaround that should be removed soon.
|
/intelci: run |
|
/intelci: run |
Description
This PR updates the model builders from xgboost objects to be able to process multi-class classification models with the new structure introduced in version 3.1.0, which has vector-valued intercepts.
Checklist:
Completeness and readability
Testing