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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d5adf527b5079c96fbf63ba13f96e105d614fcec91c5f4efa714e394c5222a9
|
|
| MD5 |
238eeb5251932a93d37efd634634300c
|
|
| BLAKE2b-256 |
883e1d43f12f2c315fbcf19955feb997c84cdd647814a896fa25fb97cb08d935
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10d7575c7261f410ec90ee2fbd48b1aec8b19d1cb18a2215d6930182c51db85f
|
|
| MD5 |
954cc43c5e3550e2d525f8af41bcb439
|
|
| BLAKE2b-256 |
2bdde27397a4b291991c6666e069c69f757208190f8874d6f93e851cb8a926ff
|