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

fail for : java.lang.NumberFormatException: For input string: "inf" #49

Closed jefftan83 closed 3 years ago

jefftan83 commented 3 years ago

fail for

java.lang.NumberFormatException: For input string: "inf"
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
        at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
        at java.lang.Double.parseDouble(Double.java:538)
        at java.lang.Double.valueOf(Double.java:502)
        at org.jpmml.lightgbm.LightGBMUtil.parseInterval(LightGBMUtil.java:213)
vruusmann commented 3 years ago

Closing as exact duplicate of https://github.com/jpmml/jpmml-lightgbm/issues/48

The question remains - how are you able to generate inf as continuous feature bounds? I'm using the latest LightGBM version, and I can't make it happen.

I can't fix an error that I can't reproduce locally.