Closed travisbrady closed 7 years ago
Looks like LightGBM has updated the model data format lately.
The JPMML-LightGBM library is attempting to load the value of the sigmoid
parameter from the "header" section, but it is not there anymore:
https://github.com/jpmml/jpmml-lightgbm/blob/master/src/main/java/org/jpmml/lightgbm/GBDT.java#L76
Did it move to the end of the objective
param?
In my txt model: https://gist.github.com/travisbrady/3408dedf1a8217a32eb859337b354648#file-clf_2017_03_12data-lgb-txt-L6
Did it move to the end of the objective param?
Indeed, looks like LightGBM has "inlined" objective function-specific parameters to reduce clutter in the "header" section.
I can spot some other changes in the model data format. For example, tree sections specify the has_categorical
parameter, which wasn't there ~1 month ago.
I get the error below when trying to convert a saved booster.
The LGBM model file is here: https://gist.github.com/travisbrady/3408dedf1a8217a32eb859337b354648
Interestingly the PMML converter that comes with Lightgbm runs without crashing but generates a file without a single tree in it.
Other details: Model created with lgb Python bindings