Skip to main content

Unified CATE estimation: metalearners, neural nets, and boosted trees

Project description

causl

Unified CATE estimation in Python.

causl provides a clean, sklearn-compatible interface for heterogeneous treatment effect estimation, including metalearners, neural networks, and boosted tree methods.

Installation

pip install causl

Quickstart

from causl import SLearner, TLearner, DragonNet, NEDNet, CausalXGBoost
from sklearn.ensemble import GradientBoostingRegressor

# Metalearner
model = SLearner(base_learner=GradientBoostingRegressor())
model.fit(X, T, Y)
ite = model.predict_ite(X)
ate = model.predict_ate(X)

# Neural
model = DragonNet(input_dim=X.shape[1])
model.fit(X, T, Y)

Models

Model Type Class
S-Learner Metalearner SLearner
T-Learner Metalearner TLearner
DragonNet Neural DragonNet
NEDNet Neural NEDNet
CXGBoost Tree-based CausalXGBoost

License

MIT

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

causl-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

causl-0.1.0-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file causl-0.1.0.tar.gz.

File metadata

  • Download URL: causl-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.0 Windows/10

File hashes

Hashes for causl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f302c1f8936cff5788f8f7f4438e20270ec04ed8340b56bc9f758dca4c0026b
MD5 8d72c50e5673fa9496527776fcead0fa
BLAKE2b-256 06f467ab80212b1a3474a3b62ebeda53fb0f64acde2e4822543e117785115389

See more details on using hashes here.

File details

Details for the file causl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: causl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.11.0 Windows/10

File hashes

Hashes for causl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 578ccf3537888c3c9d93d91dda2707e2e05b7094e0a5ed5f0df5f8e1948c1129
MD5 317adaaf0c2b010a1e7d6a6eaae9776a
BLAKE2b-256 1b20c9c718bc7722b9f948a42eb313b1fe94d06f40fead9a04c3f9b1361da791

See more details on using hashes here.

Supported by

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