CausalForge is a Python package that provides a suite of modeling & causal inference methods using machine learning algorithms based on Elevence Health recent research. It provides convenient APIs that allow to estimate Propensity Score, Average Treatment Effect (ATE), Conditional Average Treatment Effect (CATE) or Individual Treatment Effect (ITE) from experimental or observational data. Methods have been redesigned for production. Check out the documentation.
We recommend to create a proper enviroment with tensorflow and pytorch installed. For example, for a local Mac enviroment without GPUs:
conda env create -f env_mac.yml
conda activate causalforge
You can install it after cloning this repository, i.e.
git clone https://github.com/anthem-ai/causalforge
cd causalforge
[sudo] pip install -e . [--trusted-host pypi.org --trusted-host files.pythonhosted.org]
or directly from the repository (development), i.e.
pip install --upgrade git+https://github.com/anthem-ai/causalforge [--trusted-host pypi.org --trusted-host files.pythonhosted.org]
or directly from PyPI, i.e.
pip install causalforge
After installing you can import classes and methods, e.g.
import causalforge
causalforge.__version__
@article{tesei2023learning,
title={Learning end-to-end patient representations through self-supervised covariate balancing for causal treatment effect estimation},
author={Tesei, Gino and Giampanis, Stefanos and Shi, Jingpu and Norgeot, Beau},
journal={Journal of Biomedical Informatics},
volume={140},
pages={104339},
year={2023},
publisher={Elsevier}
}