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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2519f32763d22488dcbd7953d1c888c1db51389a0e382e361d8163b0c0d0df07
|
|
| MD5 |
cf312f5b3761abeb5f3ef7cb4fb8d304
|
|
| BLAKE2b-256 |
a57b6ae72be91f1f0b50c37476843e368259c96894d2a3d6c5a608ea1f76c587
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0cc9a3905279f1e4d4c7c40b1c2b40280f1a3f94eab78419b4507ac20fefec
|
|
| MD5 |
200e17d2418ff2208dcf6faa5ec4b418
|
|
| BLAKE2b-256 |
3bad3c4c974c16eec43b784a782f5f0222d1b75757b2ed8550e8a883e5b7cd8f
|