从Java调用R-更快的替代RCaller [英] Calling R from Java - Faster alternative to RCaller

查看:78
本文介绍了从Java调用R-更快的替代RCaller的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了RCaller 2.0从Java调用R函数,经过几次尝试,我设法使其起作用.集成非常容易,但是RCaller在运行时有点慢.恐怕RCaller 2.0不适用于我的应用程序,因为我必须重复调用同一脚本数千次,并且该库引入的延迟无法满足我的需要.

I tried RCaller 2.0 to call R functions from Java and I managed to make it work after a few tries. Integration was pretty easy but RCaller is kinda slow at runtime. I'm afraid that RCaller 2.0 won't be suitable for my application since I have to repeatedly call the same script thousands of times and the latency introduced by this library is unacceptable for my needs.

是否存在从Java调用R脚本的更快(就运行时执行时间而言)的选择?

Is there a faster (in terms of run-time execution time) alternative for calling R scripts from Java?

推荐答案

是否有任何方法可以将某些迭代推入R中,因此您调用它的频率要少得多?也许您可以传递一组数据,并运行一系列脚本,现在您要在其中逐个传递它们.

Is there any way to push some of the iteration over into R, so that you're calling it much less often? Maybe you can pass in an array of data, with an array of scripts to run, where you're passing them in one by one now.

这篇关于从Java调用R-更快的替代RCaller的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆