Skip to main content

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

Metadata

Release files for tetrad-plus 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tetrad-plus 0.1.4
File Size Uploaded Provenance Actions
tetrad_plus-0.1.4.tar.gz 34.6 MB Without provenance Details for tetrad_plus-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tetrad-plus 0.1.4
File Interpreter ABI Platform Actions
tetrad_plus-0.1.4-py3-none-any.whl Python 3 none any Details for tetrad_plus-0.1.4-py3-none-any.whl

Total release size: 69.2 MB

Release files / tetrad_plus-0.1.4.tar.gz

Download URL tetrad_plus-0.1.4.tar.gz
Size 34.6 MB
Tags Source
SHA-256 checksum
How to use checksums
32f6f2d01fecf02da3c84d0235315e52da014c952bb2269e565b7af4ffea3cc9
BLAKE2b-256 checksum
How to use checksums
2719ec713fb8a1b91c3dc0a7ff5e1f7a2447f59ee5055da86bcbbc1d69b54686
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / tetrad_plus-0.1.4-py3-none-any.whl

Download URL tetrad_plus-0.1.4-py3-none-any.whl
Size 34.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
07efa9d64484e45394e7c603ccce8241e27b0b33d781b4cad801fb13eed4a8b7
BLAKE2b-256 checksum
How to use checksums
7866e83e08ae7bf9ed7f4a5778f406ec5e0dba75f44752bb2828166c4a56cbe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for tetrad-plus 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page