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

There are some mistakes. Who can help me #14

Closed luoyexuge closed 6 years ago

luoyexuge commented 6 years ago

lightgbm shuubiasahi$ java -jar target/converter-executable-1.2-SNAPSHOT.jar --lgbm-input /Users/shuubiasahi/Documents/python/credit-tfgan/xml/lightgbm.txt --pmml-output /Users/shuubiasahi/Documents/python/credit-tfgan/xml/lightgbm.pmml Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at org.jpmml.lightgbm.Section.getInt(Section.java:46) at org.jpmml.lightgbm.Tree.load(Tree.java:76) at org.jpmml.lightgbm.GBDT.load(GBDT.java:108) at org.jpmml.lightgbm.LightGBMUtil.loadGBDT(LightGBMUtil.java:61) at org.jpmml.lightgbm.LightGBMUtil.loadGBDT(LightGBMUtil.java:53) at org.jpmml.lightgbm.Main.run(Main.java:122) at org.jpmml.lightgbm.Main.main(Main.java:115)

azaaza0319 commented 5 years ago

Hi I have the same issue here. Could someone reopen the issue and help? Attached is my model file. Is it due to the model does not have "num_cat"? lightgbm.txt

FYI lightgbm version is 2.0.2