We are developing a model which needs to be integrated into an external system where it only supports PMML 4.3
We were using the latest xgboost model and the latest sklearn2pmml and it could only produce PMML in 4.4 version.
These are some errors that we were getting
SEVERE: Failed to parse PKL
RuntimeError: The JPMML-SkLearn conversion application has failed. The Java executable should have printed more information about the failure into its standard output and/or standard error streams
SEVERE: Failed to parse learner
java.io.IOException: Expected 27-element array of zeroes, got [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
There are components that need to be downgraded.
- xgboost
This post suggests that xgboost version needs to be in 1.0.0
- sklearn2pmml
This post mentions 4.4 was introduced sometime in May 2020. I just looked through the releases and found a jar close to that date.