Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

DeepCTR

> 开发工具
Open source

Easy-to-use,Modular and Extendible package of deep-learning based CTR models .

8.1K stars0 likes3 views
WebsiteGitHub

About

Easy-to-use,Modular and Extendible package of deep-learning based CTR models .

DeepCTR

DeepCTR is a Easy-to-use, Modular and Extendible package of deep-learning based CTR models along with lots of core components layers which can be used to easily build custom models.You can use any complex model with model.fit() ,and model.predict() .

  • Provide tf.keras.Model like interfaces for quick experiment. example
  • Provide tensorflow estimator interface for large scale data and distributed training. example
  • It is compatible with both tf 1.15 and tf 2.x.

Installation and compatibility

DeepCTR does not pin or install TensorFlow for you. Install a TensorFlow build that matches your Python, NumPy, CPU/GPU, and operating system first, then install DeepCTR:

bash
pip install tensorflow
pip install deepctr

For Python >=3.9, DeepCTR allows modern h5py releases with h5py>=3.7.0. If TensorFlow reports a NumPy conflict, follow the TensorFlow requirement for your selected TensorFlow release, for example using numpy<2 when required by TensorFlow.

Use public tensorflow.keras APIs in your own code and examples. Avoid mixing tensorflow.python.keras with tensorflow.keras, because tensorflow.python.* is private TensorFlow API and can break model serialization or optimizer/metric loading across TensorFlow versions.

Some related projects:

  • DeepMatch: https://github.com/shenweichen/DeepMatch
  • DeepCTR-Torch: https://github.com/shenweichen/DeepCTR-Torch

Let's Get Started!(Chinese Introduction) and welcome to join us!

Models List

Model Paper
Convolutional Click Prediction Model [CIKM 2015]A Convolutional Click Prediction Model
Factorization-supported Neural Network [ECIR 2016]Deep Learning over Multi-field Categorical Data: A Case Study on User Response Prediction
Product-based Neural Network [ICDM 2016]Product-based neural networks for user response prediction
Wide & Deep [DLRS 2016]Wide & Deep Learning for Recommender Systems
DeepFM [IJCAI 2017]DeepFM: A Factorization-Machine based Neural Network for CTR Prediction
Piece-wise Linear Model [arxiv 2017]Learning Piece-wise Linear Models from Large Scale Data for Ad Click Prediction
Deep & Cross Network [ADKDD 2017]Deep & Cross Network for Ad Click Predictions
Attentional Factorization Machine [IJCAI 2017]Attentional Factorization Machines: Learning the Weight of Feature Interactions via Attention Networks
Neural Factorization Machine [SIGIR 2017]Neural Factorization Machines for Sparse Predictive Analytics
xDeepFM [KDD 2018]xDeepFM: Combining Explicit and Implicit Feature Interactions for Recommender Systems
Deep Interest Network [KDD 2018]Deep Interest Network for Click-Through Rate Prediction
AutoInt [CIKM 2019]AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networks
Deep Interest Evolution Network [AAAI 2019]Deep Interest Evolution Network for Click-Through Rate Prediction
FwFM [WWW 2018]Field-weighted Factorization Machines for Click-Through Rate Prediction in Display Advertising
ONN [arxiv 2019]Operation-aware Neural Networks for User Response Prediction
FGCNN [WWW 2019]Feature Generation by Convolutional Neural Network for Click-Through Rate Prediction
Deep Session Interest Network [IJCAI 2019]Deep Session Interest Network for Click-Through Rate Prediction
FiBiNET [RecSys 2019]FiBiNET: Combining Feature Importance and Bilinear feature Interaction for Click-Through Rate Prediction
FLEN [arxiv 2019]FLEN: Leveraging Field for Scalable CTR Prediction
BST [DLP-KDD 2019]Behavior sequence transformer for e-commerce recommendation in Alibaba
IFM [IJCAI 2019]An Input-aware Factorization Machine for Sparse Prediction
DCN V2 [arxiv 2020]DCN V2: Improved Deep & Cross Network and Practical Lessons for Web-scale Learning to Rank Systems
DIFM [IJCAI 2020]A Dual Input-aware Factorization Machine for CTR Prediction
FEFM and DeepFEFM [arxiv 2020]Field-Embedded Factorization Machines for Click-through rate prediction
SharedBottom [arxiv 2017]An Overview of Multi-Task Learning in Deep Neural Networks
ESMM [SIGIR 2018]Entire Space Multi-Task Model: An Effective Approach for Estimating Post-Click Conversion Rate
MMOE [KDD 2018]Modeling Task Relationships in Multi-task Learning with Multi-gate Mixture-of-Experts
PLE [RecSys 2020]Progressive Layered Extraction (PLE): A Novel Multi-Task Learning (MTL) Model for Personalized Recommendations
EDCN [KDD 2021]Enhancing Explicit and Implicit Feature Interactions via Information Sharing for Parallel Deep CTR Models

Citation

  • Weichen Shen. (2017). DeepCTR: Easy-to-use,Modular and Extendible package of deep-learning based CTR models. https://github.com/shenweichen/deepctr.

If you find this code useful in your research, please cite it using the following BibTeX:

bibtex
@misc{shen2017deepctr,
  author = {Weichen Shen},
  title = {DeepCTR: Easy-to-use,Modular and Extendible package of deep-learning based CTR models},
  year = {2017},
  publisher = {GitHub},
  journal = {GitHub Repository},
  howpublished = {\\url{https://github.com/shenweichen/deepctr}},
}

DisscussionGroup

  • Github Discussions
  • Wechat Discussions
公众号:浅梦学习笔记 微信:deepctrbot

Main contributors(welcome to join us!)

​
​ Shen Weichen ​

Alibaba Group

​

Zan Shuxun ​

Alibaba Group

​
​
​ Harshit Pande

Amazon

​
​
​ Lai Mincai

ByteDance

​
​
​ Li Zichao

ByteDance

​
​
Tan Tingyi

Chongqing University
of Posts and
Telecommunications

​

Issues· 62 open

View all issuesOpen on GitHub
  • #545

    请问能否帮忙解决一下,使用DEEPFM会存在内存泄漏的问题

    Updated May 30, 2025
  • #516

    mmoe训练模型,测试集ctr和cvr的auc完全相等。

    questionUpdated Nov 25, 2024
  • #448

    (很急)运行DeepFM以及往其他模型中添加FM时报错ValueError: Dimension 0 in both shapes must be equal, but are 1 and 64.该如何解决

    questionUpdated Sep 12, 2023
  • #265

    我在跑FGCNN遇到一些问题,随着迭代次数的增加,训练集的损失在下降,但是验证集的在上升

    questionUpdated Aug 21, 2023
  • #486

    ValueError: Could not interpret optimizer identifier: <keras.optimizers.optimizer_v2.adam.Adam object at 0x7fbe77391a00>

    Updated Aug 21, 2023
  • #491

    din模型训练成功并且能保存pb模型但是无法加载训练好的pb模型

    questionUpdated Aug 21, 2023
  • #522

    The following Variables were used a Lambda layer's call,BatchNormalization

    Updated May 4, 2023
  • #499

    How to get multi output for DeepFM?

    questionUpdated Mar 28, 2023
  • #509

    EDCN应该每次传入cross_in和初始第0层的cross_in,否则不符合DCN本身数学推导

    questionUpdated Mar 16, 2023
  • #511

    Value error when loading saved DIEN model

    Updated Feb 21, 2023

> Tags

Pythonautointclick-through-ratectrdeep-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具