I have some classification models that I've developed in R with functions like glm, rpart, etc. What's the most computationally efficient way to call those models from Java? I've seen JRI, but that looks like there are lots of text-based calls to R.
Is there a way to use these models from Java with low overhead?
JPMML now has a functional testing module that specifically deals with scoring PMML models that have been developed using R/Rattle: https://github.com/jpmml/jpmml/tree/master/pmml-rattle
JPMML should be able to score decision trees (ie. rpart() function) and neural networks (ie. nnet() function) without problem. The support for generalized regression models (ie. glm() function) is coming soon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With