Skip to main content

A causal feature selection (Causal DRIFT: Causal Dimensionality Reduction via Inference of Feature Treatments) library using residual-based ATE estimation.

Project description

deepCausal

deepCausal is a Python library for causal feature ranking and selection based on residual treatment effect estimation.
It uses double machine learning and residualization techniques to estimate the causal impact (ATE) of each feature on a continuous or categorical outcome.

🔍 Key Features

  • Supports both continuous and categorical outcomes
  • Uses residual-on-residual regression for causal interpretation
  • Identifies confounders automatically
  • Ranks features by causal strength, not just correlation

🚀 Usage

from deepCausal import DeepCausal import pandas as pd import numpy as np

df = pd.DataFrame({ 'X1': np.random.randn(100), 'X2': np.random.rand(100), 'X3': np.random.randn(100), 'Y': np.random.randn(100) })

X = df[['X1', 'X2', 'X3']] y = df['Y']

model = DeepCausal() model.fit(X, y, outcome_type='continuous')

print(model.get_feature_ate())

📄 License This project is licensed under the MIT License.

🧪 Disclaimer This method is experimental and currently under research evaluation. Feedback and pull requests are welcome!

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

causal_drift-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

causal_drift-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: causal_drift-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for causal_drift-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2519f32763d22488dcbd7953d1c888c1db51389a0e382e361d8163b0c0d0df07
MD5 cf312f5b3761abeb5f3ef7cb4fb8d304
BLAKE2b-256 a57b6ae72be91f1f0b50c37476843e368259c96894d2a3d6c5a608ea1f76c587

See more details on using hashes here.

File details

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

File metadata

  • Download URL: causal_drift-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for causal_drift-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0cc9a3905279f1e4d4c7c40b1c2b40280f1a3f94eab78419b4507ac20fefec
MD5 200e17d2418ff2208dcf6faa5ec4b418
BLAKE2b-256 3bad3c4c974c16eec43b784a782f5f0222d1b75757b2ed8550e8a883e5b7cd8f

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