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.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 457ae4aa022f49517fb3468729f0ab794bc38bbdde10000449af1763148dc9ad |
|
MD5 | a3a3288cf63dc73c6086ad375e0c264b |
|
BLAKE2b-256 | 08ad2c22b6a70194e8f46a692ba6960241a95c6de7d530a7ae35284cd8efb994 |