Closed Clls1 closed 6 years ago
You should update to the latest r2pmml
package version, which is 0.17.3 at the moment.
I ran into a similar issue myself, and it has been fixed - the left-hand side of the assignment is RExp
(not RPair
as suggested by your ClassCastException instance):
https://github.com/jpmml/jpmml-r/blob/master/src/main/java/org/jpmml/rexp/RExpParser.java#L218
If the exception happens even after the upgrade, then please re-open this issue, and please provide a reproducible test case (eg. an R script that operates on some publicly available dataset).
I have done an ensemble through caretStacking and now I needed to extract the pmmls from the models However i am having problems with one of them, namely the glm. My model is an ensemble of a glm with a rf trough a gbm. As the gbm is the ensemble model, it only receives 2 variables the one from the glm and the other from the gbm. For extracting the ensemble model (the gbm) I did:
and it went ok. After for extracting the rf i did:
which also went ok.
With the same logic, I tried the glm but it din't work.
Can someone help me please? Thank you!
Error discription: