Skip to main content

Information-Theoretic Causal Inference on Discrete Data

Project description

Caddie

Caddie is a collection of bivariate discrete causal inference methods based on information-theoretic Additive Noise Models (ANM) and MDL-based instantiation of Algorithmic Independence of Conditionals (AIC).

Caddie Module Installation

The recommended way to install the caddie module is to simply use pip:

$ pip install caddie

Caddie officially supports Python >= 3.6.

How to use caddie?

>>> X = [1] * 1000
>>> Y = [-1] * 1000
>>> from caddie import cisc
>>> cisc.cisc(X, Y)                                                   # CISC
(0.0, 0.0)
>>> from caddie import anm, measures
>>> anm.fit_both_dir(X, Y, measures.StochasticComplexity)             # CRISP
(0.0, 0.0)
>>> anm.fit_both_dir(X, Y, measures.ChiSquaredTest)                   # DR
(1.0, 1.0)
>>> anm.fit_both_dir(X, Y, measures.ShannonEntropy)                   # ACID
(0.0, 0.0)
>>> from caddie import simulations
>>> simulations.simulate_decision_rate_against_data_type('/results/dir/') # for decision rate vs data type plots
...
>>> simulations.simulate_accuracy_against_sample_size('/results/dir/')    # for accuracy/decidability vs sample size plots
...

How to cite the paper?

Todo: Add the citation to thesis.

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

caddie-0.1.6.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

caddie-0.1.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file caddie-0.1.6.tar.gz.

File metadata

  • Download URL: caddie-0.1.6.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for caddie-0.1.6.tar.gz
Algorithm Hash digest
SHA256 5d5adf527b5079c96fbf63ba13f96e105d614fcec91c5f4efa714e394c5222a9
MD5 238eeb5251932a93d37efd634634300c
BLAKE2b-256 883e1d43f12f2c315fbcf19955feb997c84cdd647814a896fa25fb97cb08d935

See more details on using hashes here.

File details

Details for the file caddie-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: caddie-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for caddie-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 10d7575c7261f410ec90ee2fbd48b1aec8b19d1cb18a2215d6930182c51db85f
MD5 954cc43c5e3550e2d525f8af41bcb439
BLAKE2b-256 2bdde27397a4b291991c6666e069c69f757208190f8874d6f93e851cb8a926ff

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