-
Notifications
You must be signed in to change notification settings - Fork 18
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
RandomForest to PMML #47
Comments
It means that the JPMML-R library is unable to figure out the data type (what is the PMML equivalent of R's I believe that it's related to the fact that you're performing "cast to factor" operations inside the R formula: rf <- randomForest(as.factor(fraude) ~ Total_Saldo_A + as.factor(Tem_Modelo_Equipo), data = segmentacao_out_model) Does the conversion succeed, if you perform those cast operations before the segmentacao_out_model$fraude = as.factor(segmentacao_out_model$fraude)
segmentacao_out_model$Tem_Modelo_Equipo = as.factor(segmentacao_out_model$Tem_Modelo_Equipo)
rf <- randomForest(fraude ~ Total_Saldo_A + Tem_Modelo_Equipo, data = segmentacao_out_model) |
Thanks to your tip I discovered the problem. The thing was that one of the variables was of the type difftime, I converted to numeric and it worked! Thank you so much! Please continue the great work! |
Can you provide a reproducible example about using The PMML standard provides first-class date/time data types, and is able to do arithmetic with them (eg. calculating the number of days between two dates, the number of seconds between two timestamps etc.). Would be very interested in prototyping something in this area. |
Related issues: |
Hello,
I have run a randomForest however I am not able to extract the pmml. What could be the issue?
Thank you so much
Error:
The text was updated successfully, but these errors were encountered: