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(data.values, data.columns) >>> results = model.fit() >>> results.order [2, 1, 0] >>> result.plot()
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.3.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbad3e39defeeabd7f712cc0e73c3c0f9f72047247b27df49eb3405f8deb2fb1 |
|
MD5 | fb74136d264612306b523d837a22328b |
|
BLAKE2b-256 | 8fc3f557a6f227f1df4ae419530f40eccc725071e10a9283b6bc6ff7b3f1dcab |