Skip to main content

DML Pipeline

Reusable build, estimation, plotting, and utility code for DoubleML-style program evaluation workflows.

The package keeps project-specific configuration in project_config/ and reusable pipeline code in dml_code/. The published distribution includes the code under dml_code/src and dml_code/pipeline, plus the example project configuration files.

Install

pip install dml-dev

For local development from a checkout:

python -m pip install -e '.[dev]'

Commands

After installation, the package exposes two command line entrypoints:

dml-build example_program
dml-estimate synthetic_example

The same steps can also be run as modules:

python -m dml_code.pipeline.step1_build example_program
python -m dml_code.pipeline.step2_estimate synthetic_example

Workflow

  1. Build an analysis dataset from source parquet files and program registry entries.
  2. Estimate treatment effects from a YAML experiment definition.
  3. Write raw logs, diagnostics, plots, and tables to the configured output locations.
project_config/ + source data
        |
        v
dml_code.pipeline.step1_build
        |
        v
processed analysis data
        |
        v
dml_code.pipeline.step2_estimate
        |
        v
outputs/raw, outputs/plots, outputs/tables

Project Configuration

Most project setup happens in project_config/.

  • project_config/build_spec.py: databank inputs, columns to carry through, relative-time columns, and generated features.
  • project_config/registries/programs.py: program LazyFrames with canonical join, treatment, and observation columns.
  • project_config/registries/covariate_sets.py: reusable covariate lists and categorical covariate declarations.
  • project_config/registries/filter_sets.py: reusable dataframe filters.
  • project_config/registries/models.py: named outcome and propensity learners.
  • project_config/experiments/*.yaml: experiment definitions for estimation.

The reusable implementation lives in:

  • dml_code/pipeline/: runnable build and estimation steps.
  • dml_code/src/: shared helpers for building, estimating, paths, outputs, and logging.

Publishing Check

Build and validate the package locally with:

python -m build
python -m twine check dist/*

Metadata

Release files for dml-dev 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dml-dev 0.1.2
File Size Uploaded Provenance Actions
dml_dev-0.1.2.tar.gz 29.7 kB With provenance Details for dml_dev-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dml-dev 0.1.2
File Interpreter ABI Platform Actions
dml_dev-0.1.2-py3-none-any.whl Python 3 none any Details for dml_dev-0.1.2-py3-none-any.whl

Total release size: 64.9 kB

Release files / dml_dev-0.1.2.tar.gz

Download URL dml_dev-0.1.2.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e5b1346273058f805fe0e6a95087a9c1ed0727ea44f5353126c89334157a96bd
BLAKE2b-256 checksum
How to use checksums
1e19399baa1e4ca68fe2404672ba8a3e396137f8b42026a7439aa468ab0acbad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

Release files / dml_dev-0.1.2-py3-none-any.whl

Download URL dml_dev-0.1.2-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f5e0df73b59eba35cb33c0db1cdf108b37158fa1248110a7c2ae72a16f566e9
BLAKE2b-256 checksum
How to use checksums
bc08ac7241ded921b9119b3a170b3ac5be718e016f696b091fa353a9ae33b8b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

Security for dml-dev 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dml_dev-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

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