CCPFN: Causal Foundation Model for Continuous Treatments
Project description
This is the repository for inference with CCPFN (Continuous Causal Prior-Fitted Network), a causal foundation model for use in domains with a continuous treatment variable. This is the inference repository; the full research reposistory (including training code and our prior) is forthcoming.
Quick Start
To install from source (a PyPI package is forthcoming), run the following:
git clone https://github.com/layer6ai-labs/CCPFN-inference.git
cd CCPFN-inference
pip install -e .
Example notebooks on CCPFN usage, including individual treatment-response curve reconstruction tasks, can be found in the notebooks directory.
Overview
CCPFN uses in-context learning (ICL) to estimate the effects of a continuously-varying treatment (for example, the dosage of a medication, or the sensitivity of economic outcomes to prices or rates). Specifically, it estimates the conditional expected potential outcome (CEPO), defined as $𝔼[Y(t) \mid X = x]$. Observational (historic) data is supplied as context, and queries are passed at inference time. No further training is required.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ccpfn-0.0.1.tar.gz.
File metadata
- Download URL: ccpfn-0.0.1.tar.gz
- Upload date:
- Size: 128.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed1489dfa13c32caba6654945ec54580bff0b5e5489e9cb8e5bd6e61673845b2
|
|
| MD5 |
4f6fb7c8f8d986c464c12554ab787da6
|
|
| BLAKE2b-256 |
5d4a84b98881458e9dca2c5b86f8f8618652b0dd43ae8e3efb0b1b404ea6bf3b
|
File details
Details for the file ccpfn-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ccpfn-0.0.1-py3-none-any.whl
- Upload date:
- Size: 19.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c3126dc98c25dee8f5e5326a6d8a347e5b023fccfee9321d60bcf35fbe00fb7
|
|
| MD5 |
b6ac3fe9a315ea47ad04faf6b0ddc07d
|
|
| BLAKE2b-256 |
c906d91b613f133177447bc7c2e395cb7a58f80a056d480b200419381e96e7ff
|