Problem writing out categorical variable to JPMML file #144
I am having trouble writing out JPMML file with categorical variables. When I remove the categorical variables, I can write my numerical variables just fine.
Here is my error trace:
Here are versions of my packages:
Would you please help me? :( I've tried several different combinations of versions of packages and nothing seems to work with my categorical.
This issue is a functional duplicate of #70
In brief, the problem is that your
To solve the problem, simply cast all output values to the same data type. Perhaps you have a mix of
I figured it out! The issue has to do with the default value for
To solve this, I simply did:
You may want to consider making the code automatically convert
I'm not a Python power user, so I wasn't aware of
Will have to investigate how the underlying Pyrolite library maps them to Java types. I suspect that
Reopening to keep this on my radar.