综合Attentional FM 和 Neural FM,搭建ANFM模型
参考如下:
Jun Xiao, Hao Ye, Xiangnan He, Hanwang Zhang, Fei Wu and Tat-Seng Chua (2017).
Attentional Factorization Machines: Learning the Weight of Feature Interactions via Attention Networks
IJCAI, Melbourne, Australia, August 19-25, 2017.
Xiangnan He and Tat-Seng Chua (2017).
Neural Factorization Machines for Sparse Predictive Analytics.
In Proceedings of SIGIR '17, Shinjuku, Tokyo, Japan, August 07-11, 2017.
AFM_Model.py:AFM模型
AFM_NFM_Model.py:ANFM模型
数据链接如下为:https://github.com/cnfsll/Neural-Factorization-Machine/tree/master/data