-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pmml File is missing DataField #242
Comments
sorry,It should be the exception caused by this, long type is converted to int: java.lang.IllegalArgumentException: 100000005561 at org.jpmml.evaluator.TypeUtil.parseInteger(TypeUtil.java:147) Process finished with exit code -1 |
Your model only needs 46 features for making a prediction. The remaining (70 - 46) = 24 features are not needed (simply wasting space and computation resources). All JPMML family conversion libraries analyze model objects to identify needed/not needed features; the former are kept, the latter discarded. It's a feature, not a bug. If that's a problem for you, you can always open the final PMML file (manually or programmatically), and insert whatever garbage you like into it. |
This is a known limitation: jpmml/jpmml-evaluator#141 If you need to represent numeric values that don't fit into 32-bit integers, consider changing the data type of the field from |
Hello,My model is displayed in python environment 【model.active_fields】has 70features, But there are only 46 features in pmml。Some features are not displayed in the pmml file, which leads to errors when making predictions in the java environment.
print(sklearn.version) 0.20.0
print(sklearn.externals.joblib.version) 0.12.5
print(sklearn_pandas.version) 1.8.0
print(sklearn2pmml.version) 0.52.1
thx.
The text was updated successfully, but these errors were encountered: