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.4.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37a78439c7336aeca583ec8ed41fb9ba589df3413c26f67e02bd998777fc0ab9 |
|
MD5 | 271191233ba33278e513d66fcd70d8ed |
|
BLAKE2b-256 | d2541ad17fea36d360f35e62bc80c18098e2d7bfcbc03bf4f9f4d03f0a1bfb81 |