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()
Metadata
Release files for causalmodels 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| causalmodels-0.4.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| causalmodels-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / causalmodels-0.4.0.tar.gz
| Download URL | causalmodels-0.4.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df8ac5ae1deec28a508a979f89ff452d63f742111d7ed8479967499f38b1354b
|
|
BLAKE2b-256 checksum How to use checksums |
61c2fa784305f0a1e9f4aada243efc7cc02c371dddc607f30bf56aa117d10f4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / causalmodels-0.4.0-py3-none-any.whl
| Download URL | causalmodels-0.4.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41744c7ff2b91b9272333ee44fe00257fb35d714c03986439e9f6ea20ba1f7c4
|
|
BLAKE2b-256 checksum How to use checksums |
579046d9bbdbb480742a5871b01b1e82feaad75781933b4eaeeecd6b19262c83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |