rpmmlspss-modeler

Are there new developments to import pmml Models in R?


My question is basically an update / different specific scenario to this one: Can PMML models be read in R?

Is it possible to import models sepcified as pmml xml files in R? Specifically a CHAID decision tree exported from SPSS Modeler?

The linked question points to some solutions like the partykit package, which apparently is able to import some models, but not the one in question here. In my specifc case I get the error "Error in FUN(X[[i]], ...) : CompoundPredicate not yet implemented", which lead to the question if there are any other solutions.

Are there any other new developments that might help in this regard and allow me to import pmml models with CompoundPredicate in the xml?


Solution

  • What is the purpose of importing PMML decision tree models into R? Making predictions, visualization, something else?

    For prediction, you may check out the JPMML-Evaluator-R package.