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 = [c, b, a] >>> >>> model = cm.DirectLiNGAM() >>> results = model.fit(data) >>> results.get_causal_order() [2, 1, 0]
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.0.2.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3a03946a3222ad9cdfd1188be27002dff86ff6840de49c3d1e63bb1801d6a4 |
|
MD5 | 26a6382ce2923fe74b35e5517e62eb8d |
|
BLAKE2b-256 | f2e0b224c5dc1ef5ce1c893dc313a9c9830b47cb08373b70fca189facb22427c |