export R neuralnet package model to PMML when I look into the R package pmml, I found that, it is possible to directly export nnet model into PMML format.

But actually I am using neuralnet package since it has more features and flexibility.

The problem is:

How can I export neuralnet model to PMML format, I checked pmml package, it doesn't work.

Any other options like transform neuralnet model to nnet model, or some other PMML packages to use? thanks
You already mentioned the alternatives...


convert the neuralnet object to a nnet class object
implement pmml.neuralnet()


Both pmml, nnet and neuralnet packages are easy to read. You can find the source code over cran.

I think implementing pmml.neuralnet() might be the cleanest. You can just copy-paste the current pmml.nnet()  method, call it pmml.neturalnet() and make the necessary changes. Should not take more than a day's work.

ps: It would be cool if you'd sent your function to neuralnet authors afterwards of course, and link it from here. :)