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.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca271c3e552e6e9719324f2d12bb408c888ff07cb2de7ee11e06da85a66a5dc |
|
MD5 | c56ed51a2e0911019f509fed3e10c705 |
|
BLAKE2b-256 | fbe820ee07313434e7b76efc74a5a0306abcfcede41f8046f71371d14fa98d16 |