Closed ahmed-shariff closed 2 years ago
2fp
Your PMML contains a field whose name is a blank space " "
.
Right now, JPMML-Transpiler does not contain any application logic that would check/normalize such oddities. It is assumed that the Java compiler step would find and report them (as is the case here).
Keeping this issue open as a reminder to introduce field name checking (and perhaps correct them, or replace with synthetic field names).
You should re-generate your PMML model with correct field names. Don't use a blank space as one.
JPMML-Transpiler does not contain any application logic that would check/normalize such oddities.
I remembered it wrong. Field names are translated to sanitized Java identifiers using the IdentifierUtil#sanitize(String)
utility function:
https://github.com/jpmml/jpmml-transpiler/blob/master/src/main/java/org/jpmml/translator/IdentifierUtil.java#L58-L82
The trouble is that your PMML document contains field names that transform to a blank string " "
.
I was generating the pmml files using jpmml-sklearn. Want me to mention this there as well?
Want me to mention this there as well?
That's not necessary - the problem is related to the naming of your column names (eg pandas.DataFrame
column names), not the JPMML software stack.
For example, if your column name is all numeric (eg. "999"
), then you'd get an empty string from IdentifierUtil#sanitize(String)
method.
I see, thank you for pointing that out
I have a pmml model generated from sklearn. I am trying to convert that to jar using jpmml-transpiler. I tried using this:
and I get this error: