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 = np.array([c, b, a]) >>> >>> model = cm.DirectLiNGAM() >>> results = model.fit(data) >>> 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.2.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file causalmodels-0.2.0.tar.gz.
File metadata
- Download URL: causalmodels-0.2.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60b33c45e4b0ee25c1f4ef023755b6f3823cb1b5e8011e42800ef570c578c6fa
|
|
| MD5 |
68f9b0983b55d9d4f564c023357490ec
|
|
| BLAKE2b-256 |
e2f470ad5710daa5b813406037fdd73810bc7201a22eb279e38e19478c9febd3
|
File details
Details for the file causalmodels-0.2.0-py3-none-any.whl.
File metadata
- Download URL: causalmodels-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68c4f8e12dbbc622352f209786e1699ca6fa7f7e1aff88fa15c3b0ae277c5e89
|
|
| MD5 |
8b3d31d8fac88241d749709b15468446
|
|
| BLAKE2b-256 |
a1b0ad5dfdd4a507984762dd165936f38aa202648c6bb5a00f3ac28564743e17
|