Closed Sammus187 closed 11 months ago
I am experiencing the same problem. Through trial and error, the parameters in the model file that was causing this problem for me are
[max_conflict_rate: 0]
[sparse_threshold: 0.8]
[max_position: 20]
[lambdamart_norm: 1]
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.
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