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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tetrad_plus-0.1.3.tar.gz.
File metadata
- Download URL: tetrad_plus-0.1.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f45e15588f31e9fdb59a59450090f78c8502c714fa6fa4fa6b017446603b6ca
|
|
| MD5 |
cc728a130e77eaceabddc9d52150a84a
|
|
| BLAKE2b-256 |
f0320bd09e64acbdc8e708d463e4390b5d6b92497eb52078cd6149f0ad1a7f94
|
File details
Details for the file tetrad_plus-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tetrad_plus-0.1.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff104fef2fef7770c31fbde55b111b9ed06d44e17168f21cff3accc8c7b7a818
|
|
| MD5 |
6e19d178dad90db91317a9a338bef121
|
|
| BLAKE2b-256 |
7510bc127794004ecfc09971bedb5b72d5d582c93d3ec3cc6dde9aa608138890
|