Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Release files for causallib 0.5.0b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for causallib 0.5.0b0
File Size Uploaded
causallib-0.5.0b0.tar.gz 92.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for causallib 0.5.0b0
File Interpreter ABI Platform
causallib-0.5.0b0-py3-none-any.whl Python 3 none any Details

Total release size: 216.5 kB

Release files / causallib-0.5.0b0.tar.gz

Download URL causallib-0.5.0b0.tar.gz
Size 92.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5ffaa18d71656e634f65860a52aad7c6fb0151452486bb7a397fbd2fc71bc392
BLAKE2b-256 checksum
How to use checksums
6811c1ea3543036d3f3ebe37e3e80d12335707124d4b3d9b93beb80259cc41de
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / causallib-0.5.0b0-py3-none-any.whl

Download URL causallib-0.5.0b0-py3-none-any.whl
Size 123.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94244d5d60c9437db6b3ce55ded40085a8d59bd67bae3fc1ce290e2c43407794
BLAKE2b-256 checksum
How to use checksums
6cc9bf502a2dd066bca053670f0a51356da2cc75ad7b5ac09bd09b2fb00af3fb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

This release

0.5.0b0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page