Skip to content

PsychometricsMZ/TL_TARNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transfer Learning for Individual Treatment Effects

Data

  • Simulation (Data/Datasets/Simulation):
    Includes simulated source datasets. Using the functions in the Generation file, target datasets (randomized or non randomized) can be created.

  • Empirical Example (Data/Datasets/Empirical):
    Datasets from the IHDS-II household survey dataset for empirical analysis. Code under Generation file can be used to create datasets.

  • Generation (Data/Generation): Includes functions to create empirical or simulation datasets.

Functions (Model & Training Procedure)

  • TARNet Model (TARNet.py):
    Defines the shared representation and two potential outcome heads.

  • Phase 1 – Distribution Alignment (Optimize_IPM.py):
    Trains the representation to align source and target treatment/control distributions using an Integral Probability Metric (IPM).

  • Phase 2 – Factual Loss Training (Optimize_Loss.py):
    Trains the treatment and control outcome heads on the target dataset.

Distance Measures

  • Distribution Distances (Distances/Distance.py):
    Implements IPM-based metrics for quantifying dataset distribution differences.

Repository Structure

TL_TARNet
|-- Data
|   |-- Datasets
|   |   |-- Empirical
|   |   |   |-- biased_subsample.csv
|   |   |   |-- random_subsample.csv
|   |   |   |-- punjab.csv
|   |   |   `-- uttar_pradesh.csv
|   |   `-- Simulation
|   |       |-- source_1000.csv
|   |       |-- source_5000.csv
|   |       |-- source_10000.csv
|   |       |-- source_20000.csv
|    |      `-- source_30000.csv
|   `-- Generation
|
|-- Distances
|   `-- Distance.py
|
|-- Functions
|   |-- TARNet.py
|   |-- Optimize_IPM.py
|   `-- Optimize_loss.py
|
`-- Results
    |-- simulation
    |-- empirical
    `-- plots

About

This repository contains the code for the submitted paper: Seyda Aydin and Holger Brandt (2025). Advantages and Limitations in the Use of Transfer Learning for Individual Treatment Effects in Causal Machine Learning, available at https://arxiv.org/abs/2512.16489.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors