jpmml / jpmml-lightgbm

Java library and command-line application for converting LightGBM models to PMML
GNU Affero General Public License v3.0
174 stars 58 forks source link

trans lightgbm.txt to lightgbm.pmml failed. #43

Closed yuzhixing closed 3 years ago

yuzhixing commented 3 years ago

It's a real lightgbm model file, but trans to pmml failed. because some value of section is null, such as “left_child”, then NPE will happen in parseStringArray of LightGBMUtil lined 100。

the model builed by lightgbm version 3.0.0。

how can i do it?

vruusmann commented 3 years ago

Closing as exact duplicate of #41.

Was fixed yesterday. Please upgrade.

vruusmann commented 3 years ago

It's a real lightgbm model file

Can be a real LightGBM model file, but when there are empty tree elements inside the tree ensemble, then it means that your model training process was incorrectly parameterized (typically, specified an unreasonably large n_estimators value).

yuzhixing commented 3 years ago

thanks