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

Uploaded Source

Built Distribution

caml-0.0.0.dev5-py3-none-any.whl (27.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: caml-0.0.0.dev5.tar.gz
  • Upload date:
  • Size: 5.5 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.dev5.tar.gz
Algorithm Hash digest
SHA256 fbc98cfe7f6b3d2ee8973ea8a0f4ca5e7eb858fab416ba465813a6ff81dffeeb
MD5 11fd02356a0656cdbaa19a739542cb08
BLAKE2b-256 33b1ff2ba4438752a9668845453a7da02d34e635858b9b2d7f7765824f208010

See more details on using hashes here.

File details

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

File metadata

  • Download URL: caml-0.0.0.dev5-py3-none-any.whl
  • Upload date:
  • Size: 27.8 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.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 bb0688523a0f6881ea6173512c02f51dcf9ef314fd7ea8900bfe362513b38086
MD5 1df2d9c5bfb423af5a50c83d83d294bb
BLAKE2b-256 c6db20fcadfea8b39be43483307020ac640bae9539dbfa3e2faf0be44a81693c

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