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.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c42d37a8285bea3b7a1984b247263336cccafc880aa5836cdfd00d421730099 |
|
MD5 | ea0a73252561747fe1f3a84470d5d5a1 |
|
BLAKE2b-256 | 862e635e82df84f33fdb99d0f2d56231c640e730f04c416892d82b93d63d01f6 |