Giter VIP home page Giter VIP logo

lightctr's Introduction

LightCTR

LightCTR is a tensorflow 2.0 based, extensible toolbox for building CTR/CVR predicting models. It provides several off-the-shelf popular CTR models for you to use. And it also contains some useful model blocks to help you build your own model quickly.

Have a quick start with the example script ./examples/ctr_predict.py

A small example dataset avazu_1w.txt is provided in ./datasets, It is sampled from a kaggle dataset with 10000 rows.

Models List

Model Paper
Factorization-supported Neural Network (FNN) [ECIR 2016]Deep Learning over Multi-field Categorical Data: A Case Study on User Response Prediction
Product-based Neural Network (PNN) [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
Deep & Cross Network (DCN) [ADKDD 2017]Deep & Cross Network for Ad Click Predictions
xDeepFM [KDD 2018]xDeepFM: Combining Explicit and Implicit Feature Interactions for Recommender Systems
Neural Factorization Machine (NFM) [SIGIR 2017]Neural Factorization Machines for Sparse Predictive Analytics
Attentional Factorization Machine (AFM) [IJCAI 2017]Attentional Factorization Machines: Learning the Weight of Feature Interactions via Attention Networks
AutoInt [arxiv 2018]AutoInt: Automatic Feature Interaction Learning via Self-Attentive Neural Networks
Convolutional Click Prediction Model (CCPM) [CIKM 2015]A Convolutional Click Prediction Model
Feature Generation by Convolutional Neural Network (FGCNN) [WWW 2019]Feature Generation by Convolutional Neural Network for Click-Through Rate Prediction
Mixed Logistic Regression (MLR) [arxiv 2017]Learning Piece-wise Linear Models from Large Scale Data for Ad Click Prediction
FiBiNET [RecSys 2019]FiBiNET: Combining Feature Importance and Bilinear feature Interaction for Click-Through Rate Prediction
NFFM [arxiv 2019]Operation-aware Neural Networks for User Response Prediction

lightctr's People

Contributors

hirosora avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

lightctr's Issues

xDeepfm can't save model

If I code 'model.save_weights(...)' after model.fit in xDeepfm, then i get the traceback:

Traceback (most recent call last):
File "train_xdeepfm.py", line 74, in
model.save_weights('weights/test.h5')
File "/home/lixiang/anaconda3/envs/env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/engine/network.py", line 1074, in save_weights
saving.save_weights_to_hdf5_group(f, self.layers)
File "/home/lixiang/anaconda3/envs/env_tf2/lib/python3.6/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 631, in save_weights_to_hdf5_group
param_dset = g.create_dataset(name, val.shape, dtype=val.dtype)
File "/home/lixiang/anaconda3/envs/env_tf2/lib/python3.6/site-packages/h5py/_hl/group.py", line 139, in create_dataset
self[name] = dset
File "/home/lixiang/anaconda3/envs/env_tf2/lib/python3.6/site-packages/h5py/_hl/group.py", line 373, in setitem
h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5o.pyx", line 202, in h5py.h5o.link
RuntimeError: Unable to create link (name already exists)

However i changed model from xdeepfm to deepfm, model.save_weights() ran successfully.
Whats wrong with the xdeepfm ?

thanks.

gen_concated_feature

你好,我觉得gen_concated_feature.py文件中,sparse_slots_filter = [slot_name for slot_name in slots_filter if slot_name in self.sparse_feats_slots]
应该改为sparse_slots_filter = [slot_name for slot_name in slots_filter if slot_name in (self.sparse_feats_slots+self.list_sparse_feats_slots)]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.