Skip to main content

causal-learn Python Package

Project description

causal-learn: Causal Discovery for Python

Causal-learn is a python package for causal discovery that implements both classical and state-of-the-art causal discovery algorithms, which is a Python translation and extension of Tetrad.

The package is actively being developed. Feedbacks (issues, suggestions, etc.) are highly encouraged.

Package Overview

Our causal-learn implements methods for causal discovery:

  • Constrained-based causal discovery methods.
  • Score-based causal discovery methods.
  • Causal discovery methods based on constrained functional causal models.
  • Hidden causal representation learning.
  • Granger causality.
  • Multiple utilities for building your own method, such as independence tests, score functions, graph operations, and evaluations.

Install

Causal-learn needs the following packages to be installed beforehand:

  • python 3
  • numpy
  • networkx
  • pandas
  • scipy
  • scikit-learn
  • statsmodels
  • pydot

(For visualization)

  • matplotlib
  • graphviz

To use causal-learn, we could install it using pip:

pip install causal-learn

Documentation

Please kindly refer to causal-learn Doc for detailed tutorials and usages.

Contribution

Please feel free to open an issue if you find anything unexpected. And please create pull requests, perhaps after passing unittests in 'tests/', if you would like to contribute to causal-learn. We are always targeting to make our community better!

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

causal-learn-0.1.2.1.tar.gz (129.6 kB view details)

Uploaded Source

Built Distribution

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

causal_learn-0.1.2.1-py3-none-any.whl (163.0 kB view details)

Uploaded Python 3

File details

Details for the file causal-learn-0.1.2.1.tar.gz.

File metadata

  • Download URL: causal-learn-0.1.2.1.tar.gz
  • Upload date:
  • Size: 129.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.3

File hashes

Hashes for causal-learn-0.1.2.1.tar.gz
Algorithm Hash digest
SHA256 6c5fe6ce4d93c627d56b62dedcf41f02f9da7f824fc26b90326fdfdec5a4eaa7
MD5 0fe5120bdc3edb952696a55161e7db24
BLAKE2b-256 89d11119e29b914ac55ef93bc03d6c5cbaac903bbf900009b9c74d367b9d2df0

See more details on using hashes here.

File details

Details for the file causal_learn-0.1.2.1-py3-none-any.whl.

File metadata

  • Download URL: causal_learn-0.1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 163.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.3

File hashes

Hashes for causal_learn-0.1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d4dcd5abd9ba7b507c5aa4f996944cecd17a85a32122faeb271695c8a4cb512
MD5 bd8b9f2ac45a8175067e3e9d900b1ca7
BLAKE2b-256 f748025a3fff9b8408999099de6d7829fb76b6817cae0dce7c53242e1be19eac

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