Python Package for Causal Inference
Project description
CausalFlow
CausalFlow 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.
Installing Python Package
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 causalflow
You can install it after cloning this repository, i.e.
git clone https://gitlab.com/gtesei/causalflow.git
cd causalflow
[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://gitlab.com/gtesei/causalflow.git [--trusted-host pypi.org --trusted-host files.pythonhosted.org]
or directly from PyPI, i.e.
pip install causalflow
After installing you can import classes and methods, e.g.
import causalflow
causalflow.__version__
'0.0.1'
Testing
cd tests
pytest --disable-warnings
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 Distribution
File details
Details for the file causalforge-0.0.2.tar.gz
.
File metadata
- Download URL: causalforge-0.0.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6891ed7567285de2fb0959dd77edba7b86ef7be3e4c55951469f04a6f5c1d2e |
|
MD5 | 8cf8d50b416d041beda9378e15ff4ea5 |
|
BLAKE2b-256 | d49d64eb3d845982403047f578664c35a32ae5b5f2ae5e03b5f5b81c512fd394 |