Can PMML models be read in R?

谁都会走 提交于 2019-11-27 22:16:37

问题


I have a PMML file which I am trying to import/read in R to do some analysis based on it. I couldn't find a suitable function to read the model, although I found a package that is related to PMML. Is there is a simple way to read this type of file into R?

Thanks,


回答1:


Unfortunately, it is not possible to import a model in PMML format in order to predict the classes of some instances using R.

The pmml package only allow you to train a model in R and then export it.




回答2:


There is now a way to read PMML objects into R, using the great "partykit" package.

I tried it out with a node from SPSS and it works.

Here is the link to the vignette explaining how: https://cran.r-project.org/web/packages/partykit/vignettes/constparty.pdf




回答3:


There is currently no way to import a model via PMML unless the model was created using the arules package. The authors of that package have provided a way to import/export arules models

http://cran.r-project.org/web/packages/arules/index.html




回答4:


Yes there is even a pmml package.

And see the Rdocumentation.org result for searching for pmml



来源:https://stackoverflow.com/questions/19718468/can-pmml-models-be-read-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!