Skip to main content

A package of tools for working with the tetrad java program for causal discovery from CMU

Project description

tetrad_plus

This project provides a python interface to the java Tetrad program from Carnegie Mellon University (https://github.com/cmu-phil/tetrad).

The primary motivation of this project was to provide a set of commands that could be used in a jupyter notebook. Combined with the dgraph_flex package, it supports the interactive use of causal discovery algorithms such as gfci, running of a SEM using the causal graph and data, and creation of publication quality graphs using the graphviz program.

The code has been designed and tested to run on Windows11, macOS Sequoia and Ubuntu 22.04. It should run on other versions of these platforms.

For a simple sample usage, try out the tetrad_demo.ipynb file in the github repository. This will run within vscode.

You will need a JDK21 or higher version which can be downloaded from here: https://www.oracle.com/java/technologies/downloads/#java21

You will also need the graphviz package which can be downloaded from here: https://graphviz.org/download/

Python Environment Creation

It is highly recommended you create a virtual environment for running python.

# Create a virtual environment (if you don't have one)
python -m venv .venv

# Activate the virtual environment
# On Windows:
.venv\Scripts\activate
# On macOS/Linux:
source .venv/bin/activate

# Then install the necessary packages using pip
# On Windows:
pip install -r requirements_win11.txt
# On macOS/Linux:
pip install -r requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tetrad_plus-0.1.4.tar.gz (34.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tetrad_plus-0.1.4-py3-none-any.whl (34.6 MB view details)

Uploaded Python 3

File details

Details for the file tetrad_plus-0.1.4.tar.gz.

File metadata

  • Download URL: tetrad_plus-0.1.4.tar.gz
  • Upload date:
  • Size: 34.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tetrad_plus-0.1.4.tar.gz
Algorithm Hash digest
SHA256 32f6f2d01fecf02da3c84d0235315e52da014c952bb2269e565b7af4ffea3cc9
MD5 23201441572187e4735583663859fa7b
BLAKE2b-256 2719ec713fb8a1b91c3dc0a7ff5e1f7a2447f59ee5055da86bcbbc1d69b54686

See more details on using hashes here.

File details

Details for the file tetrad_plus-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tetrad_plus-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 34.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tetrad_plus-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07efa9d64484e45394e7c603ccce8241e27b0b33d781b4cad801fb13eed4a8b7
MD5 36f1fa351a7112613f53482310d3ea8f
BLAKE2b-256 7866e83e08ae7bf9ed7f4a5778f406ec5e0dba75f44752bb2828166c4a56cbe2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page