java.lang.IllegalArgumentException: objective
burakisiklidh opened this issue · 0 comments
burakisiklidh commented
Hi,
When I tried to convert lightgbm model into pmml format, it throws this exception. I used a custom objective function. Can't we convert when we use a custom objective?
java -jar jpmml-lightgbm-executable-1.3.5.jar --lgbm-input "model.lgb" --pmml-output "model.lgb.pmml";
converting model to PMML
Jan 13, 2022 11:30:50 AM org.jpmml.lightgbm.Main run
INFO: Loading GBDT..
Jan 13, 2022 11:30:50 AM org.jpmml.lightgbm.Main run
SEVERE: Failed to load GBDT
java.lang.IllegalArgumentException: objective
at org.jpmml.lightgbm.Section.get(Section.java:106)
at org.jpmml.lightgbm.Section.get(Section.java:100)
at org.jpmml.lightgbm.Section.getStringArray(Section.java:90)
at org.jpmml.lightgbm.GBDT.loadObjectiveFunction(GBDT.java:482)
at org.jpmml.lightgbm.GBDT.load(GBDT.java:102)
at org.jpmml.lightgbm.LightGBMUtil.loadGBDT(LightGBMUtil.java:53)
at org.jpmml.lightgbm.LightGBMUtil.loadGBDT(LightGBMUtil.java:45)
at org.jpmml.lightgbm.Main.run(Main.java:146)
at org.jpmml.lightgbm.Main.main(Main.java:136)
Thanks
Best