Skip to main content

hierarchical data generation for causal discovery and abstraction

Project description

CausalSpyne

PyPI version test coverage

A Python package for simulating data from confounded causal models.

Quick start

Install with: pip install causalspyne

Generate some data:

from causalspyne import gen_partially_observed


gen_partially_observed(size_micro_node_dag=4,
                       num_macro_nodes=4,
                       degree=2,  # average vertex/node degree
                       list_confounder2hide=[0.5, 0.9], # choie of confounder to hide: percentile or index of all toplogically sorted confounders
                       num_sample=200,
                       output_dir="output",
                       rng=0)

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

causalspyne-0.1.4.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

causalspyne-0.1.4-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file causalspyne-0.1.4.tar.gz.

File metadata

  • Download URL: causalspyne-0.1.4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.4 Linux/5.15.0-124-generic

File hashes

Hashes for causalspyne-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4acbdd04e3e0a13d5909a8cacd157015767e5555e403a4cf78c55a54bd250937
MD5 6c245f52eaab9ce2a6892a89bfb8e5bc
BLAKE2b-256 1669dd19108d75e96126c6ff0da296bcfe7cf1c48ff5eec1596fe82a12625054

See more details on using hashes here.

File details

Details for the file causalspyne-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: causalspyne-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.4 Linux/5.15.0-124-generic

File hashes

Hashes for causalspyne-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4045d6b9369f79694a69ff2b0d9821881f2c485198bd4dfc46d7ad49938e0c
MD5 c268c5e25736ce4e610a8f0bc79ccb65
BLAKE2b-256 11649e4a71dfd283c6481835a7d0864cb90916a381e2d7ef7f490600441fbbc4

See more details on using hashes here.

Supported by

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