calibratedDML GitHub

Tutorials

Each tutorial generates example data, fits an estimator, and prints the results. Choose a Python notebook, a Python script, or an R vignette.

Calibrated DML

ExamplePythonR
Fit from raw data
Binary and multi-arm treatment; estimates and intervals.
Notebook · ScriptVignette
Custom learners
Built-in models, scikit-learn, SuperLearner, and sl3.
Notebook · ScriptVignette
Supplied predictions
Cross-fitted nuisance matrices and treatment-level ordering.
Notebook · ScriptVignette

Adaptive binary-treatment estimation

Compare the calibrated R-learner with the plug-in mode.

Python notebook · Python script · R vignette

Run a tutorial locally

Run an example
git clone https://github.com/Larsvanderlaan/calibratedDML.git
cd calibratedDML
python -m pip install -e .
python Python/tutorials/standard_workflows.py