JuliaConnectoR:一个面向功能的接口,用于在R中集成Julia
The JuliaConnectoR: a functionally oriented interface for integrating Julia in R
摘要:
像许多考虑新的程序设计语言Julia的小组一样,我们面临着从R访问我们在Julia中开发的算法的挑战。因此,我们开发了R包JuliaConnectoR,可从CRAN存储库和GitHub(https://github.com/stefan-m-lenz/JuliaConnectoR)获得,特别是用于提供高级深度学习工具。为了维护性和稳定性,我们决定将R和Julia之间的通信基于TCP,使用优化的二进制格式交换数据。我们的软件包还特别包含了一些功能,这些功能允许在R中进行方便的交互式使用。这使得使用Julia开发R扩展或简单地从R中的Julia包调用功能变得容易。与Julia对象交互和调用Julia函数变得用户友好,因为Julia函数和变量在R工作区中直接作为对象可用。我们用代码示例说明了我们的包的进一步功能,并讨论了两个替代包JuliaCall和XRJulia的优点。最后,我们用一个更广泛的例子来演示该软件包的用法,该例子用于神经常微分方程,这是一种最近备受关注的深度学习技术。这个例子还为将Julia的深度学习技术集成到R中提供了更一般的指导。
英文摘要:
Like many groups considering the new programming language Julia, we faced the challenge of accessing the algorithms that we develop in Julia from R. Therefore, we developed the R package JuliaConnectoR, available from the CRAN repository and GitHub (https://github.com/stefan-m-lenz/JuliaConnectoR), in particular for making advanced deep learning tools available. For maintainability and stability, we decided to base communication between R and Julia on TCP, using an optimized binary format for exchanging data. Our package also specifically contains features that allow for a convenient interactive use in R. This makes it easy to develop R extensions with Julia or to simply call functionality from Julia packages in R. Interacting with Julia objects and calling Julia functions becomes user-friendly, as Julia functions and variables are made directly available as objects in the R workspace. We illustrate the further features of our package with code examples, and also discuss advantages over the two alternative packages JuliaCall and XRJulia. Finally, we demonstrate the usage of the package with a more extensive example for employing neural ordinary differential equations, a recent deep learning technique that has received much attention. This example also provides more general guidance for integrating deep learning techniques from Julia into R.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。