-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[python] support saving and loading CVBooster #3556
Comments
For the restore, you can load model one-by-one, and append it to a empty cvbooster. refer to LightGBM/python-package/lightgbm/engine.py Lines 303 to 305 in 1bc2793
|
Re-opening this issue because I don't think it was totally resolved. By chance, I got an email notification this week because someone left a comment on this issue and then deleted it. First, I think it's important to include the actual text of the error messages, so that this issue can be found from search engines. I tried running the example code given with This code fails with the following error.
LightGBM/python-package/lightgbm/engine.py Lines 309 to 317 in ec1debc
Trying to save the
So I think there are multiple issues here to be addressed:
@StrikerRUS what do you think? |
@jameslamb Seems reasonable to me. |
I've updated the description and added this to #2302, where we store the full list of feature requests. Closing this for now per our policy in #2302. Anyone is welcome to pursue adding this feature! Please just leave a comment here saying that you are interested, and the issue can be re-opened as a place to ask maintainers questions. |
Please if you have time, please work on this feature. |
This issue has been automatically locked since there has not been any recent activity since it was closed. |
The two most immediately apparent ways to save a cvbooster (to me at least) would be to use pickle, or save_model() as is done with basic booster models. However, neither of these appear to work:
Would it be possible to get a
.save_model()
method for CVBooster?The text was updated successfully, but these errors were encountered: