Skip to main content

A library of causal inference tools by IBM Haifa Research Labs

Project description

Build Status Test Coverage PyPI version Documentation Status

IBM Causal Inference Library

A Python package for computational inference of causal effect.

Description

Causal inference analysis allows estimating of the effect of intervention on some outcome from observational data. It deals with the selection bias that is inherent to such data.

This python package allows creating modular causal inference models that internally utilize machine learning models of choice, and can estimate either individual or average outcome given an intervention. The package also provides the means to evaluate the performance of the machine learning models and their predictions.

The machine learning models must comply with scikit-learn's api and contain fit() and predict() functions. Categorical models must also implement predict_proba().

Installation

pip install causallib

Usage

In general, the package is imported using the name causallib. For example, use

from sklearn.linear_model import LogisticRegression
from causallib.estimation import IPW 
ipw = IPW(LogisticRegression())

Comprehensive Jupyter Notebooks examples can be found in the examples directory.

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

causallib-0.5.0b0.tar.gz (92.6 kB view details)

Uploaded Source

Built Distribution

causallib-0.5.0b0-py3-none-any.whl (123.9 kB view details)

Uploaded Python 3

File details

Details for the file causallib-0.5.0b0.tar.gz.

File metadata

  • Download URL: causallib-0.5.0b0.tar.gz
  • Upload date:
  • Size: 92.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for causallib-0.5.0b0.tar.gz
Algorithm Hash digest
SHA256 5ffaa18d71656e634f65860a52aad7c6fb0151452486bb7a397fbd2fc71bc392
MD5 8d47704f0d2f72b98c7dc8db9899eaab
BLAKE2b-256 6811c1ea3543036d3f3ebe37e3e80d12335707124d4b3d9b93beb80259cc41de

See more details on using hashes here.

File details

Details for the file causallib-0.5.0b0-py3-none-any.whl.

File metadata

  • Download URL: causallib-0.5.0b0-py3-none-any.whl
  • Upload date:
  • Size: 123.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for causallib-0.5.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 94244d5d60c9437db6b3ce55ded40085a8d59bd67bae3fc1ce290e2c43407794
MD5 b381c4931fa3ca9af9a451b9253cea55
BLAKE2b-256 6cc9bf502a2dd066bca053670f0a51356da2cc75ad7b5ac09bd09b2fb00af3fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page