Skip to main content

Extensions & abstractions of advanced econometric techniques leveraging machine learning.

Project description

version pre-commit ruff uv

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.

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

caml-0.0.0.dev7.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

caml-0.0.0.dev7-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for caml-0.0.0.dev7.tar.gz
Algorithm Hash digest
SHA256 ca7fb0396f7f41efa1d658d932904121b45adcfeb11728727a2950730b27e339
MD5 32a646e2e1d56c0a0e26a31464d3ea86
BLAKE2b-256 c914deab6db77ac133e97c35fc47c0d2f47cdfc1667e70f4bff5a1cab39364eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for caml-0.0.0.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 e4bc2f712f1f239597f33b7e0c4b578d50fdbc3e7ebc7b5262e587b58f9a2572
MD5 41dda6eaa1be5b952cc62550687fff17
BLAKE2b-256 79b2a7e2d51e1c98485a23a1118614b7aecbd6df434c40bbbf5feb46d87a5d4a

See more details on using hashes here.

Supported by

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