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.8.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4e1a426d6b89a4a3a9443f1e954f1f038699f9898898c3df228d76ad31b125 |
|
MD5 | 426e270374ef1df1666cea708540e4fe |
|
BLAKE2b-256 | c4101a2eada3b2b362d87490e37bbadc864db5fc8b3e91e2502fc818d4b6354f |