Examples#

Working example notebooks are available in the example folder.

The notebooks are grouped by topic. Within each group they run from introductory to advanced, so a group’s first notebook is the place to start.

Getting started#

The two canonical tours of the package: CATE estimation with the meta-learners, and uplift modeling with the tree-based learners.

Meta-learners#

Uplift and causal trees#

Evaluation and validation#

Validating a CATE model without ground truth: uplift and Qini curves, TMLE-based evaluation, calibration, and sensitivity analysis.

Interpretation and feature selection#

Neural models#

DragonNet and CEVAE, each with a comparison of its available backends. These need the optional tf, torch or jax extras.

Instrumental variables#

Policy and value optimization#

Turning effect estimates into treatment decisions: policy learning, counterfactual unit selection and value optimization, and probabilities of causation.

Datasets and benchmarks#

The benchmark leaderboard regenerates every number published on the Benchmark Datasets page; the simulation studies compare estimators on synthetic and semi-synthetic data.