Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pre-commit ruff

CaML Logo

Welcome!

CaML = Causal Machine Learning

CaML provides a high-level API for an opinionated framework in performing Causal ML to estimate Average Treatment Effects (ATEs), Group Average Treatment Effects (GATEs), and Conditional Average Treatment Effects (CATEs), and to provide mechanisms to utilize these models for out of sample prediction & policy prescription.

The codebase is comprised primarily of extensions & abstractions over top of EconML & DoubleML with techniques motivated heavily by Causal ML Book and additional research.

Background

The origins of CaML are rooted in a desire to develop a set of helper tools to abstract and streamline techniques & best pratices in Causal ML/Econometrics for estimating ATEs, GATEs, and CATEs, along with policy prescription.

As we began working on these helper tools, we begun to see the value in reformulating this framework into a reusable package for wider use amongst the community and to provide an opinionated framework that can be integrated into productionalized systems, particularly experimentation platforms, for efficient estimation of causal parameters for reporting & decision-making purposes.

Admittedly, we were tempted to include the term "Auto" in the name of this package (e.g., AutoCATE, AutoCausal, etc.), but we quickly realized the potential for misapplication & naive usage that could arise from that type of "branding." Indeed, the misapplication of many Causal AI/ML techniques is all too commonplace in the data science community. All of the standard assumptions for causal inference still apply in order for these tools & techniques to provide unbiased inference.

Given a key motivation is to provide a tool for productionalized systems, we are building this package with interoperability and extensibility as core values - a key motivation for using Ibis to ensure we are backend agnostic for end users (e.g., instantiate with a pyspark dataframe and get a pyspark dataframe back). The degree of interoperability will be limited in scope at first, but we hope to expand this as the code base develops. As of now, the tools utilized still rely on in-memory datasets for estimation (via EconML for causal models & flaml for AutoML of nuissance functions), but we leverage Ray & Spark for distributing certain processes where appropriate.

Download files

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

Source Distribution

caml-0.0.0.dev4.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

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

caml-0.0.0.dev4-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file caml-0.0.0.dev4.tar.gz.

File metadata

  • Download URL: caml-0.0.0.dev4.tar.gz
  • Upload date:
  • Size: 4.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for caml-0.0.0.dev4.tar.gz
Algorithm Hash digest
SHA256 c535ac77b3823df3bf92bafd7e4a6cdcff363c61936cb46a9159e366aad75cb8
MD5 e4a085aedee0816f2dac4dafd368998c
BLAKE2b-256 9c1229bc63453190a77392d78827fb0633b067013ce41a748240962f2b8ec16e

See more details on using hashes here.

File details

Details for the file caml-0.0.0.dev4-py3-none-any.whl.

File metadata

  • Download URL: caml-0.0.0.dev4-py3-none-any.whl
  • Upload date:
  • Size: 26.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for caml-0.0.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce74a8d584c319984872f25a4ef631beaba0409ca2664cb025c845bf558b7fdf
MD5 71bddbfa49175d1f26b3830b325a2f65
BLAKE2b-256 536e39c4d604e050bebea0999a18c9b299e3e584e9c438249f82c91812c17887

See more details on using hashes here.

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