All Projects → cyhong549 → DeepFM-Keras

cyhong549 / DeepFM-Keras

Licence: other
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to DeepFM-Keras

EasyRec
A framework for large scale recommendation algorithms.
Stars: ✭ 599 (+2039.29%)
Mutual labels:  deepfm
recommendation model
练习下用pytorch来复现下经典的推荐系统模型, 如MF, FM, DeepConn, MMOE, PLE, DeepFM, NFM, DCN, AFM, AutoInt, ONN, FiBiNET, DCN-v2, AFN, DCAP等
Stars: ✭ 286 (+921.43%)
Mutual labels:  deepfm
Tensorflow Deepfm
Tensorflow implementation of DeepFM for CTR prediction.
Stars: ✭ 1,891 (+6653.57%)
Mutual labels:  deepfm
Deepctr
Easy-to-use,Modular and Extendible package of deep-learning based CTR models .
Stars: ✭ 5,686 (+20207.14%)
Mutual labels:  deepfm
Recommender-System-Pytorch
基于 Pytorch 实现推荐系统相关的算法
Stars: ✭ 40 (+42.86%)
Mutual labels:  deepfm

DeepFM-Keras

DeepFM written by Keras[1], similary with the tensorflow version by ChenglongChen "https://github.com/ChenglongChen/tensorflow-DeepFM"

Usage:

###load data and divide to train and test dfTrain = pd.read_csv("data/train.csv") dfTrain = dfTrain.iloc[0:int(0.7dfTrain.shape[0]),:] dfTest = dfTrain.iloc[int(0.7dfTrain.shape[0]):,:]

global_columns = dfTrain.columns.tolist() ###divide the columns by CATEGORICAL columns ID_columns = ["ps_reg_01", "ps_reg_02", "ps_reg_03", "ps_car_12", "ps_car_13", "ps_car_14", "ps_car_15",]

qid_columns = ['id'] target_columns = ['target']

Example:

Folder example includes an example usage of DeepFM models for Porto Seguro's Safe Driver Prediction competition on Kaggle.

Please download the data from the competition website and put them into the example/data folder.

To train DeepFM model for this dataset, run

$ python keras_FM.py

Support:

Support the auc loss and log_loss as metrics

[1] DeepFM: A Factorization-Machine based Neural Network for CTR Prediction, Huifeng Guo, Ruiming Tang, Yunming Yey, Zhenguo Li, Xiuqiang He.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].