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.dev6.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: caml-0.0.0.dev6.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.dev6.tar.gz
Algorithm Hash digest
SHA256 87ccbb3efaa63a1d1a42f5e5e4e77b669abd4a561e3cefb8ba34d9fe4c9f0b54
MD5 831276fe5fc4709a82618802ed3b4732
BLAKE2b-256 6e843730e04550d17629651c50ce730c3e11699bad3aed13079e318728373a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caml-0.0.0.dev6-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.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 9ca857dae2b15d8061431d40d3dfc33522c25510063bc15423e43eddac053e9b
MD5 6e55c721db5c8caf9a1d0eed0e91e78d
BLAKE2b-256 f92aa0737f9f8d98f882e25e565ebbe19162e3da3e536993c8e47659896338b7

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