Can PMML models be read in R?

只谈情不闲聊 提交于 2019-11-29 04:05:44

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.

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

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

Yes there is even a pmml package.

And see the Rdocumentation.org result for searching for pmml

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