Python implementation of causal trees with validation
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
- Python 3
- graphviz (if you want to plot the tree)
pip install causal_tree_learn
or clone the repository
python setup.py build_ext --inplace
Two demo codes are available to run.
Runs the tree on a binary example (asthma.txt)
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)
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size causal_tree_learn-2.41-cp37-cp37m-macosx_10_9_x86_64.whl (231.5 kB)||File type Wheel||Python version cp37||Upload date||Hashes View|
|Filename, size causal_tree_learn-2.41.tar.gz (122.9 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for causal_tree_learn-2.41-cp37-cp37m-macosx_10_9_x86_64.whl