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.7.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3efd554b396d5f0d211f89e85b77d4be57ddf6f9c6415ddba811806be2cbd971 |
|
MD5 | 0969e9ffdd445b8a9c1c7f02ee818d6a |
|
BLAKE2b-256 | 63bd8e6f2fccccac6c04e7a799b7380843c840e76bf51d3f815e18f13ef244fd |