-
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
lightgbm v3 model file not compatible with v4 #6082
Comments
I am experiencing the same problem. Through trial and error, the parameters in the model file that was causing this problem for me are
I'm not sure if there are others. Removing them allows the model to be loaded but I have not verified that the loaded model behaves correctly. |
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https:/microsoft/LightGBM/issues including a reference to this. |
Description
Model file fit and output with v3.3.0 can not be loaded in with v4.0.0.
Tested working using lightgbm v2.3.1 and v3.3.0.
Throws exception in v4.0.0. Tested in both Windows and Linux.
In Linux (Ubuntu 20.04):
Windows gives a slightly different error (attached screencap - could not copy text from test environment)
Reproducible example
Using attached test.txt
Environment info
python 3.8.6 and python 3.11.3
LightGBM version: 3.3.0 and 4.0.0
Command(s) you used to install LightGBM
and
Additional Comments
The text was updated successfully, but these errors were encountered: