Skip to content

yasu-sh/tetrad

 
 

Repository files navigation

Tetrad

The purpose of Tetrad is to make algorithms available in Java to do causal inference. Here is the Dietrich College Carnegie Mellon University web page for Tetrad. Here is the Simon Initiative page for Tetrad.

Here is our project web page here with current links for artifacts, a list of contributors, and a bit of history.

Here is the web page for the Center for Causal Discovery, which also supports the latest version of Tetrad and Causal Command.

Setting up Java

You will need to set up Java on your machine. For setting up Java, see our Wiki article, Setting up Java for Tetrad.

Tetrad GUI Application

To download the current jar you can use to launch the Tetrad GUI, click this link:

https://s01.oss.sonatype.org/content/repositories/releases/io/github/cmu-phil/tetrad-gui/7.4.0/tetrad-gui-7.4.0-launch.jar.

You may be able to launch this jar by double clicking the jar file name, though on a Mac, this presents some security challenges. In any case, on all platforms, the jar may be launched at the command line (with a specification of the amount of RAM you will allow it to use) using this command:

java -Xmx[g]G -jar *-launch.jar

where [g] is the maximum number of Gigabytes you wish to allocate to the process.

Command Line

We have a tool, Causal Command, that lets you run Tetrad algorithms at the command line.

Python and R Integration

For Python integration, please see our (still new) py-tetrad Python project, which shows how to integrate arbitrary Java code in the Tetrad project into a Python workflow using the JPype Python project.

Also, please see the causal-learn Python package, translating some Tetrad algorithms into Python and adding some algorithms not in Tetrad, now part of the py-why space

We added a method to use Tetrad algorithms in R via py-tetrad. This is work in progress.

Documentation

If you're new to Tetrad, here is a Tutorial. Also, here is our Manual. If you like to watch thought-provoking lectures, here are some lectures on the Center for Causal Discovery site.

In addition, here are our Javadocs.

Install

All artifacts are published in the Maven Central Repository. This includes all downloadable jars and Javadocs.

Here is our GitHub URL. Also, here are some instructions on how to set this project up in IntelliJ IDEA. You can run the Tetrad lifecycle package target and launch the "-launch" jar that is built in the target directory.

The project contains well-developed code in these packages:

  • tetrad
  • pitt
  • tetradapp

The tetrad-lib package contains the model code; the tetrad-gui package contains the view (GUI) code.

Bug Reports

Please submit issue requests for Tetrad using our Issue Tracker. We will try to the extent possible to resolve all reported issues before releasing new versions of Tetrad. This may involve moving items to our Wish List .

Open Code

All of our code is public and we welcome suggestions, especially suggestions that improve clarity or performance of our code.

If you're writing code using (or for!) Tetrad in either Java or Python (or R, which we're working toward!), thank you! Please contribute if you are doing amazing work, or publish and send us links to your papers. Please keep us abreast of how Tetrad could be improved for your applications; we will do what we can.

Citation

Please cite as:

@inproceedings{ramsey2018tetrad,
  title={TETRAD—A toolbox for causal discovery},
  author={Ramsey, Joseph D and Zhang, Kun and Glymour, Madelyn and Romero, Ruben Sanchez and Huang, Biwei and Ebert-Uphoff, Imme and Samarasinghe, Savini and Barnes, Elizabeth A and Glymour, Clark},
  booktitle={8th international workshop on climate informatics},
  year={2018}
}

About

Repository for the Tetrad Project, www.phil.cmu.edu/tetrad.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.7%
  • HTML 4.3%