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 = [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.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for causalmodels-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 356f8067f59f1c7d55a617ffc2ba335275a736f95136346c3a54ccdb19351491 |
|
MD5 | 0c797e359886d7dfa98175e414f90f99 |
|
BLAKE2b-256 | 9c8d238b1342bfa067d0da665b68599055e97d08aa4416e852cf6623f05160e0 |