Estimation of individualized treatment effects using generative adversarial nets
Project description
GANITE - Estimation of individualized treatment effects using generative adversarial nets
Code Author: Jinsung Yoon (jsyoon0823@g.ucla.edu)
Paper: Jinsung Yoon, James Jordon, Mihaela van der Schaar, "GANITE: Estimation of Individualized Treatment Effects using Generative Adversarial Nets", International Conference on Learning Representations (ICLR), 2018.
Description
Estimating individualized treatment effects (ITE) is a challenging task due to the need for an individual’s potential outcomes to be learned from biased data and without having access to the counterfactuals. We propose a novel method for inferring ITE based on the Generative Adversarial Nets (GANs) framework. Our method, termed Generative Adversarial Nets for inference of Individualized Treatment Effects (GANITE), is motivated by the possibility that we can capture the uncertainty in the counterfactual distributions by attempting to learn them using a GAN. We generate proxies of the counterfactual outcomes using a counterfactual generator, G, and then pass these proxies to an ITE generator, I, in order to train it. By modeling both of these using the GAN framework, we are able to infer based on the factual data, while still accounting for the unseen counterfactuals. We test our method on three real-world datasets (with both binary and multiple treatments) and show that GANITE outperforms state-of-the-art methods.
Installation
$ pip install ganite
Example Usage
from ganite import Ganite
from ganite.datasets import load
from ganite.utils.metrics import sqrt_PEHE_with_diff
X_train, W_train, Y_train, Y_train_full, X_test, Y_test = load("twins")
model = Ganite(X_train, W_train, Y_train, num_iterations=500)
pred = model(X_test).numpy()
pehe = sqrt_PEHE_with_diff(Y_test, pred)
print(f"PEHE score for GANITE on {dataset} = {pehe}")
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 Distributions
Built Distributions
File details
Details for the file ganite-0.1.2-py3-none-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: ganite-0.1.2-py3-none-macosx_10_14_x86_64.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdcb5f548ace0bf8bd5bf5b0a7917d25daca328b0c5f63c1216c0a284aa7be58 |
|
MD5 | 90ef63e0c8f19ab4827ad80a3f8fdce9 |
|
BLAKE2b-256 | 1c9c23c483e38ad13b85c2dc7fea39980dbd4a75c3a4d229d50f31d7ef3cbbca |
File details
Details for the file ganite-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: ganite-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5391baf3214dbe5076242f2b7ca217e703c4c98131fe2fc83cb866c1047d02 |
|
MD5 | fd3acae833538a644d6a2b10aa71ce84 |
|
BLAKE2b-256 | 2f730c2455a99f69a577b13eb3e7f636356eaf321f2faee3c1f5d42312d8a9ec |