Skip to main content

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

causal_tree_learn-2.42.tar.gz (124.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

causal_tree_learn-2.42-cp310-cp310-macosx_12_0_arm64.whl (216.9 kB view details)

Uploaded CPython 3.10macOS 12.0+ ARM64

causal_tree_learn-2.42-cp37-cp37m-macosx_10_9_x86_64.whl (237.2 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file causal_tree_learn-2.42.tar.gz.

File metadata

  • Download URL: causal_tree_learn-2.42.tar.gz
  • Upload date:
  • Size: 124.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for causal_tree_learn-2.42.tar.gz
Algorithm Hash digest
SHA256 696088555d05aa9bea4a0f0b41b5a4b0a8b41886a8eb1d92601bcc51820c1d67
MD5 2af68295e7f2f4dae04e4d1b6c271e6c
BLAKE2b-256 ea465de8bbae3c56aa85f4ced0d7625510dc5179e271a3bd2ca254f389725394

See more details on using hashes here.

File details

Details for the file causal_tree_learn-2.42-cp310-cp310-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for causal_tree_learn-2.42-cp310-cp310-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 966a5eb719ab1db768e0e6e5334b24cdbeffe24b6a3cc0e68f6a548fa855a8ca
MD5 87dc4c7442c79267da900a5783aa0b37
BLAKE2b-256 849c93467dd4cad79aa712df445356d010c636fa19258a9e09b4ecb3c229f708

See more details on using hashes here.

File details

Details for the file causal_tree_learn-2.42-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: causal_tree_learn-2.42-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 237.2 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1.post20200323 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for causal_tree_learn-2.42-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 24c468223a8f3ecc7989847348a4c16c1423827279c70169f297d3c106b9bed4
MD5 bb794bbdd14573476dbdbdcf02f5b859
BLAKE2b-256 f714233de6396bfdf5f4c14df8a0b20c4612a26a89fbb5fe52fe24081d89b888

See more details on using hashes here.

Release history Release notifications | RSS feed

2.43

2 files

This release

2.42 This release

3 files

2.41

2 files

2.40

2 files

2.39

2 files

2.38

2 files

2.37

2 files

2.36

2 files

2.35

2 files

2.34

2 files

2.33

2 files

2.32

2 files

2.31

2 files

2.30

2 files

2.29

2 files

2.28

2 files

2.27

2 files

2.26

2 files

2.25

2 files

2.24

2 files

2.23

2 files

2.22

2 files

2.21

2 files

2.20

2 files

2.19

2 files

2.18

2 files

2.17

2 files

2.16

2 files

2.15

2 files

2.14

2 files

2.13

2 files

2.12

2 files

2.11

2 files

2.10

2 files

2.9

2 files

2.8

2 files

2.7

2 files

2.6

2 files

2.5

2 files

2.4

2 files

2.3

2 files

2.2

2 files

2.1

3 files

2.0

2 files

1.0.26

2 files

1.0.25

2 files

1.0.24

2 files

1.0.23

2 files

1.0.22

2 files

1.0.21

2 files

1.0.20

2 files

1.0.19

2 files

1.0.18

2 files

1.0.17

2 files

1.0.16

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0

2 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