Causal models in Python
Project description
causalmodels in Python.
instalation
$ pip install causalmodels
usage
>>> import numpy as np >>> import causalmodels as cm >>> a = np.random.laplace(size=500) >>> b = np.random.laplace(size=500) + a >>> c = np.random.laplace(size=500) + a + b >>> data = np.array([c, b, a]) >>> >>> model = cm.DirectLiNGAM() >>> results = model.fit(data) >>> results.order [2, 1, 0] >>> result.draw()
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
causalmodels-0.1.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76c988f8def259bbee31baebcd9b07baeb0d98179604c6967488c17ab3433969 |
|
MD5 | 26bdaee026e9650b3c80422b86e6b8dd |
|
BLAKE2b-256 | 80bd74318a61f85e2f7ef227c6587fa6eaa1c8b2337ea020286bf8827ee43a8f |