Causal models in Python
Project description
causalmodels in Python.
instalation
$ pip install causalmodels
usage
>>> import numpy as np >>> import causalmodels.api as cm >>> a = np.random.laplace(size=500) >>> b = np.random.laplace(size=500) + a >>> c = np.random.laplace(size=500) + a + b >>> data = [c, b, a] >>> >>> model = cm.DirectLiNGAM() >>> results = model.fit(data) >>> results.get_causal_order() [2, 1, 0]
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.0.1.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0db037650e3c99edd9422786d2ea59ed91da956d9b423f5a3afb5a3e37db6c82 |
|
MD5 | 6ec791ee88a99af85dad4493940e9c71 |
|
BLAKE2b-256 | daf410b8536c3a134537cfb887895a3e5fe4c19705188614545ecfedc84d669f |