-
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
Random Forest Conversions and Consumption #5
Comments
What version of JPMML are you using? First, the conversion from Please note that SkLearn uses 32-bit floating-point values for representing tree split conditions. Therefore, it is absolutely necessary to use the same datatype in PMML also, because otherwise some splits may be evaluated incorrectly. Second, you're working with a classification-type problem, where the final (ie. the top-level Both of your problems can be solved by upgrading to the latest JPMML-Evaluator library version, which is |
Thank you for the quick response. That was a good call. I was using JPMML 1.1.17. However, it seems a new error has occurred after upgrading to 1.2.11 as soon as it hits the first field name:
However, the PMML (as generated from the code above) does include the names as derived fields:
Any idea on the cause of this? Thanks! |
This is a legitimate bug now. The derived field Probably, this happens because your |
Thanks again for the quick repsonse. I tested the same code with the original PCA transformation in the example:
And the PMML was consumed and evaluated properly so that does seem to be the cause of the error. I do believe there are some cases where no transformations would be used so that would be nice to have. Thank you. |
The conversion produces an invalid PMML document, because your I've updated the JPMML-SkLearn library to do extra sanity checking along those lines: jpmml/jpmml-sklearn@7d0578a |
Hi, I've tried the same code above to create pmml file but got the following error; any suggestions? Thanks |
Hello,
I'm having a few issues in testing a random forest classifier from scklearn2pmml in JPMML. I'm producing a simple PMML file from the code here:
1. I'd like to do no transformations across my data set. Leaving them all blank transforms the data type from double to float.
This causes an issue with JPMML throwing the following error:
Is there a way to not use DataFrameMapper or would I have to manually change each of the float types back into double?
2. Changing the above issue, JPMML complains about the the model with the following error and I'm unable to evaluate it. Any ideas on what is the cause of this?
Thank you!
The text was updated successfully, but these errors were encountered: