No project description provided
Project description
causalkit: A Rust Package for Causal Inference
causalkit is a rust package that implements a set of algorithms for causal inference modeling. Currently, it supports two tree-based algorithms for individual treatment effect estimation with binary response and continuous response respectively. Given an intervention T
and response Y
, it estimates the individual treatment effect (ITE) for each sample. Both algorithms support multiple treatments, e.g. for an intervention with K treatments (control, treatment_1, treatment_2, ..., treatment_K), it will output the uplift in treatment effect for each treatment_i against control.
- Tree-based algorithms
This modeling approach can be applied to problems where the personalized effectiveness of an intervention T
to target users is concerned.
Installation
It requires python version >=3.8
. To use it in python, install as follows
pip install causalkit
You can also download the source code from this github repository and build the python library by yourself via maturin.
Usage
Please check the jupyter notebook in the example folder to learn how to use the library.
References
Literature
- Stefan Wager, Susan Athey. "Estimation and Inference of Heterogeneous Treatment Effects using Random Forests" arXiv preprint arXiv:1510.04342 (2015).
- Susan Athey, Guido Imbens. "Recursive Partitioning for Heterogeneous Causal Effects" arXiv preprint arXiv:1504.01132 (2015).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file causalkit-0.1.3-cp312-none-win_amd64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp312-none-win_amd64.whl
- Upload date:
- Size: 308.6 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | accd3079f20207bfc9280b48339b26c9bf014b25d100eeb0a5af49583de267df |
|
MD5 | cb4e39e1559b56c17d5827755f952c1d |
|
BLAKE2b-256 | b9e3c7846ef5e2d1a81ddfc3b027429c499ccac7a18fab9d245def6577d5ed78 |
File details
Details for the file causalkit-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 454.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a434a39e742b4bf56d4869df69b66fce40216ac0b2529114d463b1a883cd8fcc |
|
MD5 | b511792461a4e53e09442e6273c35b04 |
|
BLAKE2b-256 | b4dd88cc1e07d70e278dcce51d22d4275227e798f0019d36b4384f5bf25990eb |
File details
Details for the file causalkit-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 453.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91ff60207c035608ebed328fb39d382bbc3f5bb8bbece19d541a87a2ca3b8c2 |
|
MD5 | d5fa5551256b7d7f387bc76810be91e9 |
|
BLAKE2b-256 | de5975deb80c42731ac96925d7d706fa80664ec101c6a4bbcc33999c1de58be5 |
File details
Details for the file causalkit-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 399.4 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d74e01b2dc47bf1ce0f8ba98067341b60c6d63814470bc07d6ec5b947f833ffd |
|
MD5 | 575100129ef42e2e81da76f58ab705bc |
|
BLAKE2b-256 | f58cfe888e4626208a33c1c3aaa5120d39d7ba37c188bebba4ed6005e522752a |
File details
Details for the file causalkit-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 454.8 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7be953f56c289d819adbd6f9dfb6881844e729aaa4c218a0668d77961759696a |
|
MD5 | 1fdb7184c78858c8f203bbeef51a0b0c |
|
BLAKE2b-256 | 7b204de826fd9b0b47dfef8cdaf6f491629d4d029c0803de43f864c41bf9521b |
File details
Details for the file causalkit-0.1.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 454.2 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab39d7b885fa0211981632776c48d0b78aa59dd705b4bdec3765ec898078fb09 |
|
MD5 | 20167beea2b981aa428b34c607c4f69d |
|
BLAKE2b-256 | 8eadc13d72548a07afd2943a00e4eb228132f5ad0b55d1b75f2d001b56258d25 |
File details
Details for the file causalkit-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 400.1 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64241e57c88585531793eca00cd37c7e8ac2eb9d23ba00956f23958f6846db7e |
|
MD5 | cb4dc4eb95797981b7bd9bf403f7f4d3 |
|
BLAKE2b-256 | e386478a4d65f2d42245976256ae61e0b208cbbf8c029f885d94906aa1bce36e |
File details
Details for the file causalkit-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 455.2 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0535796a35daf19f745ce846968e327b7702f85bf2f6c7fee54554c0590981b1 |
|
MD5 | e52e7e8325a4c07f548636a04fa7e48d |
|
BLAKE2b-256 | 63fce4c5b6e42bf9462d094cd8ceb63fd07fa43771ed5d9a16ff3a1b4bb84c87 |
File details
Details for the file causalkit-0.1.3-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 454.6 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8724e49ae967a4c6b87b0c06839df7a55d8e32448f41c54b315ec72150569a7 |
|
MD5 | 48d7266f9401e449de5e014bc25906e1 |
|
BLAKE2b-256 | 30542e3d685bff39447c576226221936f96406a4227c3c2146b6911354323315 |
File details
Details for the file causalkit-0.1.3-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: causalkit-0.1.3-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 400.3 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e057c7beba63713748c0530d1f29e82b8c4ac7a9188532da5f2e64e884a3bae |
|
MD5 | 9e49775ef9732143475578963ee53212 |
|
BLAKE2b-256 | 0b0e265936eb3e39dbfd3583957efb5b9fb7b481cb6f88a9bade7da057a12573 |