Skip to main content

DoubleML build, estimation, plotting, and utility pipelines.

Project description

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/*

Project details


Download files

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

Source Distribution

dml_dev-0.1.2.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

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

dml_dev-0.1.2-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file dml_dev-0.1.2.tar.gz.

File metadata

  • Download URL: dml_dev-0.1.2.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dml_dev-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e5b1346273058f805fe0e6a95087a9c1ed0727ea44f5353126c89334157a96bd
MD5 6505273c5d837db2103c6946402ed355
BLAKE2b-256 1e19399baa1e4ca68fe2404672ba8a3e396137f8b42026a7439aa468ab0acbad

See more details on using hashes here.

Provenance

The following attestation bundles were made for dml_dev-0.1.2.tar.gz:

Publisher: publish.yml on coreygb1/dml-dev

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dml_dev-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dml_dev-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dml_dev-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f5e0df73b59eba35cb33c0db1cdf108b37158fa1248110a7c2ae72a16f566e9
MD5 33588e5330e511b0fac06d57e6027ad7
BLAKE2b-256 bc08ac7241ded921b9119b3a170b3ac5be718e016f696b091fa353a9ae33b8b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for dml_dev-0.1.2-py3-none-any.whl:

Publisher: publish.yml on coreygb1/dml-dev

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page