Skip to main content

Python Package for Causal Inference

Project description

CausalFlow

Build Status PyPI version Coverage Status Documentation Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

causalforge-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

causalforge-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file causalforge-0.0.1.tar.gz.

File metadata

  • Download URL: causalforge-0.0.1.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

Hashes for causalforge-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6d1207c94094829beb0ef55d240ef4754235dbbbaebabdc6165ed93b7ebe93a7
MD5 21e5ae281d567cf3c85e4e3bed1edfba
BLAKE2b-256 2a420e90044b18b235d658a3cc23a3b2a98b6f754d5888318d664340eaa4d961

See more details on using hashes here.

File details

Details for the file causalforge-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: causalforge-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for causalforge-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2efe22195c73459af352cd7af38fbe1b19ed38bd034b13ff892e2838039d72a
MD5 b6b4ffc9ccc091fa6147dfb25670a42d
BLAKE2b-256 48aeb160cbf68039cb58a57153e2573d3d20df7305ea932487fb87fe9df518b8

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