Skip to main content

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


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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

causalmodels-0.1.2-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file causalmodels-0.1.2.tar.gz.

File metadata

  • Download URL: causalmodels-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for causalmodels-0.1.2.tar.gz
Algorithm Hash digest
SHA256 67485e7217c32e4b6adca8190a0714f49f132c472b3b36f1c7a8bd01a7624a02
MD5 e4ba403ebfba6a6e65eb00da3e4209cd
BLAKE2b-256 ccb3bacb42582028914f5f66f6c4bee2d5deab5c3c8fea2a0e626954242f7596

See more details on using hashes here.

File details

Details for the file causalmodels-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for causalmodels-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dca271c3e552e6e9719324f2d12bb408c888ff07cb2de7ee11e06da85a66a5dc
MD5 c56ed51a2e0911019f509fed3e10c705
BLAKE2b-256 fbe820ee07313434e7b76efc74a5a0306abcfcede41f8046f71371d14fa98d16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page