Skip to main content

dml-rs (Python)

Fast double / debiased machine learning for causal inference, implemented in Rust and validated against DoubleML.

import dml_rs
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier

# Partially linear regression with any scikit-learn learners
plr = dml_rs.PLR(ml_l=RandomForestRegressor(), ml_m=RandomForestRegressor(), n_folds=5, n_rep=3)
plr.fit(X, y, d)
print(plr.summary)

# Built-in Rust learners run the whole cross-fitting in parallel without the GIL
plr = dml_rs.PLR(ml_l=dml_rs.Lasso(alpha=0.01), ml_m=dml_rs.Lasso(alpha=0.01)).fit(X, y, d)

# Average treatment effect of a binary treatment
irm = dml_rs.IRM(ml_g=RandomForestRegressor(), ml_m=RandomForestClassifier(), score="ATE").fit(X, y, d)

# Joint inference over several treatments
plr.bootstrap(method="normal", n_boot=1000)
plr.confint(joint=True)
plr.p_adjust("romano-wolf")

See the repository for details.

Metadata

Release files for dml-rs 0.1.0

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-rs 0.1.0
File Size Uploaded Provenance
dml_rs-0.1.0.tar.gz 67.3 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for dml-rs 0.1.0
File
dml_rs-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
dml_rs-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
dml_rs-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
dml_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
dml_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 2.9 MB

Release files / dml_rs-0.1.0.tar.gz

Download URL dml_rs-0.1.0.tar.gz
Size 67.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3ca98106968d785aee1215435c5cc2cea5dd17a8bf0975e85ed34f9070134ae4
BLAKE2b-256 checksum
How to use checksums
44362d3cc5125b8082ff2c37a80ee88f0bf94070edaf7421fb038cfc656b5bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Release files / dml_rs-0.1.0-cp39-abi3-win_amd64.whl

Download URL dml_rs-0.1.0-cp39-abi3-win_amd64.whl
Size 463.6 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8a74725e8f599a9c5d177b6a5605fcdccfd7ae86f949bd509c81d89ce79f6447
BLAKE2b-256 checksum
How to use checksums
aca337847414f5a71983f337f6cf81860fb26d617c555b3deee2c42ee26dee29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Release files / dml_rs-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL dml_rs-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 642.1 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b5862ca848ecabc6874bfc2af843478bc3e1a36db98607276b1cb800982a5bb0
BLAKE2b-256 checksum
How to use checksums
ac12098c36eef02e474d32beedc9eb94d8f83c257a95e2d097c0530e798f61bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Release files / dml_rs-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL dml_rs-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 607.5 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
08362fa60fdc8d7dfcb61c9f88df488b377de0ee3a729530b010c6846924b915
BLAKE2b-256 checksum
How to use checksums
d2e58763bd0f7e6847708d83f672faedaeb34bffa3867c13210b347d66c596ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Release files / dml_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL dml_rs-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 553.6 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
af89059b30c63e0169e9988b47f8ed3d8c1af99cc70bd93dc5e4f7dcbdebdd42
BLAKE2b-256 checksum
How to use checksums
eba4f30e03b19c734a570c067aada96f0259cf47359c06792704ce4700d58f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Release files / dml_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL dml_rs-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 586.7 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
26e706fd7f4a494dfce85ed2fc101f8c6e8555986e3438aaf9ccd5965a65e887
BLAKE2b-256 checksum
How to use checksums
d74f5027f342be340599e7a483fd7430fdded9399f514521e9789a1c2079d09a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 22, 2026.

Transparency log

Security for dml-rs 0.1.0

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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for dml_rs-0.1.0.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 Oct 22, 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.

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