KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
DeepUplift
★ 24
Open GitHub ↗
Heterogeneous Treatment Effect Explorer
Download README (.md)
Explore Similar Repositories
MultiWeixin
:
绕过微信 Mutex 锁从而实现微信多开实例。
TCM_Datasets
:
中医书籍文献等材料的高质量文本数据
agents
:
No description available.
texor
:
Texor is a lightweight, native deep learning library for Python with a familiar PyTorch-style API, built for clarity, speed, and extensibility.
PathTracer
:
A physically-based offline renderer for Iris.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
DeepUplift
?
Download (.md)
# 📈 DeepUplift **Current Version: v1.0** DeepUplift is a **PyTorch-based** project of deep-learning heterogeneous causal effect models along with common evaluation metrics and training components.You can easily use uplift models with **model.fit()** and **model.predict()**. ## 🌟 Features - Deep Uplift Models: - ✅ TarNet: U. Shalit, F. D. Johansson, and D. Sontag. Estimating individual treatment effect: generalization bounds and algorithms.2016. - Link: https://arxiv.org/abs/1606.03976 - ✅ CFRNet: U. Shalit, F. D. Johansson, and D. Sontag. Estimating individual treatment effect: generalization bounds and algorithms.2016. - Link: https://arxiv.org/abs/1606.03976 - ✅ DragonNet: Claudia Shi, David M Blei, and Victor Veitch. 2019. Adapting neural networks for the estimation of treatment effects. In Proceedings of the 33rd International Conference on Neural Information Processing Systems. 2507–2517. - Link: https://arxiv.org/pdf/1906.02120 - ✅ DragonDeepFM: Claudia Shi, David M Blei, and Victor Veitch. 2019. Adapting neural networks for the estimation of treatment effects. In Proceedings of the 33rd International Conference on Neural Information Processing Systems. 2507–2517. - ✅ EUEN: Wenwei Ke, Chuanren Liu, Xiangfu Shi, Yiqiao Dai, S Yu Philip, and XiaoqiangZhu. 2021. Addressing exposure bias in uplift modeling for large-scale online advertising. In Proceedings of the 2021 IEEE International Conference on Data Mining.1156–1161. - Link: https://github.com/aifor/eeuen - ✅ EEUEN: Wenwei Ke, Chuanren Liu, Xiangfu Shi, Yiqiao Dai, S Yu Philip, and XiaoqiangZhu. 2021. Addressing exposure bias in uplift modeling for large-scale online advertising. In Proceedings of the 2021 IEEE International Conference on Data Mining. 1156–1161. - Link: https://github.com/aifor/eeuen - ✅ DESCN: Kailiang Zhong, Fengtong Xiao, Yan Ren, Yaorong Liang, Wenqing Yao, Xiaofeng Yang, and Ling Cen. 2022. DESCN: Deep entire space cross networks for individual treatment effect estimation. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 4612–4620. - Link: https://arxiv.org/abs/2207.09920 - ✅ EFIN: Explicit Feature Interaction-aware Uplift Network for Online Marketing, SIGKDD, 2023. - Link: https://arxiv.org/abs/2306.00315 - ✅ CEVAE: C. Louizos, U. Shalit, J. M. Mooij, D. Sontag, R. Zemel, and M. Welling.Causal effect inference with deep latent-variable models. NEURIPS. 2017. - Link: https://github.com/AMLab-Amsterdam/CEVAE - ✅ GANITE:Jinsung Yoon, James Jordon, and Mihaela Van Der Schaar. 2018. GANITE: Estimation of individualized treatment effects using generative adversarial nets. In Proceedings of the 6th International Conference on Learning Representations. - Link: https://github.com/jsyoon0823/GANITE - 🔄 SNet: Nonparametric Estimation of Heterogeneous Treatment Effects: From Theory to Learning Algorithms, 2021. - Evaluation Metrics: - ✅ QINI/AUUC Curves - ✅ Causal Effect Evaluation Metrics - ✅ Model Performance Evaluation Tools - Tool Support: - ✅ Model Trainer - ✅ Propensity Score Matching (PSM) - ✅ TensorBoard Visualization - 🔄 Data Preprocessing Tools ### 🔧 Dependencies - **Python Versions**: 3.11(Recommended), 3.8, 3.9, 3.10 ```bash pip install pandas==2.1.4 torch==1.12.1 geomloss==0.2.6 sklearn==1.3.2 matplotlib==3.8.2 seaborn==0.13.0 scipy==1.11.4 ``` ## 🚀 Quick Start ```python from deepuplift.models.DESCN import ESX from deepuplift.utils.evaluate import uplift_metric # Model model,loss_f = ESX(input_dim=len(features), share_dim=12, base_dim=12),partial(esx_loss) # Training model.fit(X_train, Y_train, T_train, valid_perc=0.2,epochs=2,batch_size=64,learning_rate=1e-5,loss_f=loss_f,tensorboard=True) # Prediction t_pred, y_preds, *_ = model.predict(X_test, T_test) # Evaluation qini, qini_scores = uplift_metric(df, kind='qini') ``` ## 📊 Public Dataset - Unbiased dataset - Download Link : https://pan.quark.cn/s/6408800b0b8e (Quark Cloud Drive) - Data source: https://ailab.criteo.com/criteo-uplift-prediction-dataset - Biased dataset - Download Link : https://pan.baidu.com/share/init?surl=CKJvzow7UFGwrdXbkt1mQA (Baidu Drive: 75hr ) - Data source: https://github.com/kailiang-zhong/DESCN/tree/main/data/Lazada_dataset ## 📁 Project Structure ``` deepuplift/ ├── models/ │ ├── BaseModel.py │ ├── BaseUnit.py │ ├── ... ├── utils/ │ ├── evaluate.py │ ├── metrics.py │ └── psm.py ├── dataset/ │ └── data_link.md └── main.py ``` ## 🤝 Main contributors ( welcome to join us! ) <table border="0"> <tbody> <tr align="center"> <td width="130"> <a href="https://github.com/Zhuang-Zhuang-Liu"><img width="70" height="70" src="https://github.com/Zhuang-Zhuang-Liu.png?s=40" alt="pic"></a><br> <a href="https://github.com/Zhuang-Zhuang-Liu">ZhuangZhuangLiu</a> <p> We Lab </p> </td> <td width="150"> <a href="https://github.com/wyx1010120806"><img width="70" height="70" src="https://github.com/wyx1010120806.png?s=40" alt="pic"></a><br> <a href="https://github.com/wyx1010120806">Wei Yang</a> <p> ByteDance </p> </td> </tr> </tbody> </table> ## 📝 Version History #### [v1.0] - 2025-08-16 #### Fixed Bugs - **EFIN** - Fixed detach c_logit during y1_pred avoid gradient flow - **Dragonnet** - add eps for target regularization - **Dataloaders** - fix bug in BaseModel.py