Causal models in Python
Project description
causalmodels in Python.
instalation
$ pip install causalmodels
usage
>>> import numpy as np >>> import pandas as pd >>> 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 = pd.DataFrame({'a': a, 'b': b, 'c': c}) >>> model = cm.DirectLiNGAM() >>> results = model.fit(data.values, data.columns) >>> 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.3.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e000d85b9d7f708d5706eff9139091980dff3a4d48f2f69f9cd6af96eb170090 |
|
MD5 | 57ccdaba56898f9eb6e5b814bdfdd784 |
|
BLAKE2b-256 | fd1e9070ceaa1a69ad71226a4fc0499eda7c23cea4c38d434b47d031c6a15151 |