Ramsey Joseph D, Andrews Bryan
Department of Philosophy, Carnegie Mellon University, Pittsburgh, PA.
Department of Psychiatry & Behavioral Sciences, University of Minnesota, Minneapolis, MN.
Proc Mach Learn Res. 2023 Aug;223:40-51.
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代码。现有的实现方法并不充分。我们使用JPype Python-Java接口和Reticulate Python-R接口提供了新的、最新的方法,直接解决了这些问题。通过添加一些简单的工具并为Python和R提供工作示例,使用JPype和Reticulate将Python和R与Tetrad进行接口连接既简单又直观。