SkillAgentSearch skills...

CTL

A causal tree method (Causal Tree Learn (CTL)) for heterogeneous treatment effects in Python

Install / Use

/learn @edgeslab/CTL
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CTL

Christopher Tran, Elena Zheleva, "Learning Triggers for Heterogeneous Treatment Effects", AAAI 2019.

Our method is based on and adapted from: https://github.com/susanathey/causalTree

Requirements

  • Python 3
  • sklearn
  • scipy
  • graphviz (if you want to plot the tree)

Installation

through pip

pip install causal_tree_learn

or clone the repository

python setup.py build_ext --inplace

Demo Code

Two demo codes are available to run.

python binary_example.py

Runs the tree on a binary example (asthma.txt)

python trigger_example.py

Runs a tree on a trigger problem where the treatment is continuous (note for now the example is made up and treatment does not affect outcome, this is only to show example code)

View on GitHub
GitHub Stars67
CategoryDevelopment
Updated6mo ago
Forks13

Languages

Python

Security Score

87/100

Audited on Sep 27, 2025

No findings