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.2.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c4f8e12dbbc622352f209786e1699ca6fa7f7e1aff88fa15c3b0ae277c5e89 |
|
MD5 | 8b3d31d8fac88241d749709b15468446 |
|
BLAKE2b-256 | a1b0ad5dfdd4a507984762dd165936f38aa202648c6bb5a00f3ac28564743e17 |