Abstract:
We give novel Python and R interfaces for the (Java) Tetrad project for causal modeling, search, and estimation. The Tetrad project is a mainstay in the literature, having been under consistent development for over 30 years. Some of its algorithms are now classics, like PC and FCI; others are recent developments. It is increasingly the case, however, that researchers need to access the underlying Java code from Python or R. Existing methods for doing this are inadequate. We provide new, up-to-date methods using the JPype Python-Java interface and the Reticulate Python-R interface, directly solving these issues. With the addition of some simple tools and the provision of working examples for both Python and R, using JPype and Reticulate to interface Python and R with Tetrad is straightforward and intuitive.
摘要:
我们为(Java)Tetrad项目提供了新颖的Python和R接口,用于因果建模,搜索,和估计。Tetrad项目是文献中的支柱,已经持续发展了30多年。它的一些算法现在是经典的,像PC和FCI;其他是最近的发展。越来越多的情况下,然而,研究人员需要从Python或R访问底层Java代码。我们提供新的,使用JPypePython-Java接口和网状Python-R接口的最新方法,直接解决这些问题。添加了一些简单的工具,并为Python和R提供了工作示例,使用JPype和网状接口Python和R与Tetrad是直接和直观的。