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.2.2.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.2.2-py3-none-any.whl (34.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tetrad_plus-0.1.2.2.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.2.2.tar.gz
Algorithm Hash digest
SHA256 31ede12c4130a9c0c52035b8af928a40a9b02773fb86fe049ad3119a240d188c
MD5 9f0ed076ceecd84cf07dfce64177232d
BLAKE2b-256 f3118256f9a947d3a94b776570791b7a46083d9e1778007b6ced92b4bf424fe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tetrad_plus-0.1.2.2-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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4d7a0e421daf6739e6626f73564a448bb4f3d783b3b3e96b4fe51611174572
MD5 089d0d8abe4fdad868d8d317e6a0951f
BLAKE2b-256 ea94f3f76046d4dfb5caf5a260da6e952992e52add87ca1b4e551c786f97b065

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