You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to read the pmml file created using sklearn2pmml using jpmml evaluator for prediction facing this error:
org.jpmml.evaluator.TypeCheckException: Expected FLOAT, but got DOUBLE (3.4)
at org.jpmml.evaluator.TypeUtil.toFloat(TypeUtil.java:419)
at org.jpmml.evaluator.TypeUtil.cast(TypeUtil.java:333)
I am using the version 1.3.5 of the evaluator. PFB the mapper used while creating the pmml file no transformation was specified
There's something wrong with your environment (outdated sklearn2pmml package?). Or you have manually modified the PMML file, thereby making it invalid.
I executed your Python script, converted the fitted pipeline to PMML (using JPMML-SkLearn version 1.2.10), and scored the Iris dataset (using JPMML-Evaluator version 1.3.5). The scoring was successful, there were no exceptions being thrown.
If you open a random forest classifier's PMML file in text editor, then it's possible to see that it's fully type safe:
While trying to read the pmml file created using sklearn2pmml using jpmml evaluator for prediction facing this error:
I am using the version 1.3.5 of the evaluator. PFB the mapper used while creating the pmml file no transformation was specified
The text was updated successfully, but these errors were encountered: