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.3.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c678c9e34f6f1465e41b883bf24840fba3e34133aa97b68ec7c73afd4b0f0a38 |
|
MD5 | ef04671c5fdb3991e2f190fca24e79e9 |
|
BLAKE2b-256 | e774b5d54245499347286cc168329ec3d2f16492439bf6aac54cf9a408150939 |