-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Fix loading old logit model, helper for converting old pickle. #5281
Conversation
I will port the related changes to master. PR against release branch so we can run the tests. |
0e6f5eb
to
ded31d7
Compare
A batch of models with 0.90: |
ded31d7
to
4f5c648
Compare
Phew ... |
@RAMitchell @hcho3 Please review. ;-) |
|
@hcho3 I will generate a new batch of models including both 0.90 and 1.0.0. Can we upload it to some where, like Jenkins or maybe github has small data storage (like release meta data)? |
We can put them in an S3 bucket. Jenkins can access all S3 buckets in the same AWS account. Can you send me the models? |
@trivialfis The zip file is available at s3://xgboost-ci-jenkins-artifacts/xgboost_model_compatibility_test.zip. You can use import boto3
s3_bucket = boto3.resource('s3').Bucket('xgboost-ci-jenkins-artifacts')
s3_bucket.download_file('xgboost_model_compatibility_test.zip',
'./xgboost_model_compatibility_test.zip') Any Jenkins worker should be able to run this line. |
@hcho3 I updated the test to download the models, please review. |
* Remove saving metrics. * Add version as an attribute. * Remove the size check in R test to relax the size constraint. * Add missing R doc for passing linting. Run devtools. * Cleanup old model IO logic. * Test compatibility on CI.
3a7bb7f
to
91a8d8f
Compare
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 for adding model compatibility checks. The checks will ensure backward compatibility moving forward.
A similar issue is also found in treelite. Will try to fix it. It may be worth documenting in release note that everyone who reads the binary model needs to adjust, and it's encouraged to try the experimental JSON support and provide feedbacks. |
This seems somehow breaks treelite. |
Do you need help with fixing the build? |
I need to figure out a way to disable this auto include. |
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. Hope we don't have to maintain these fixes for long :)
Codecov Report
@@ Coverage Diff @@
## release_1.0.0 #5281 +/- ##
==============================================
Coverage 83.83% 83.83%
==============================================
Files 11 11
Lines 2413 2413
==============================================
Hits 2023 2023
Misses 390 390 Continue to review full report at Codecov.
|
Will port it to master branch. |
Continue #5277 . But PR against 1.0.0 branch. Fixes #5276 .