sbrsarkar / neural_recommender

movie recommender system based on matrix factorization and deep neural network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Neural Recommender

Movie recommender system based on Deep Factorization Machine, DeepFM [1] . It combines matrix factorization and deep neural network to build a hybrid recommendation system. The neural network captures the high-order features and the factorization method captures the low-order features.

Let the input be x , output of the factorization method be yMF(x) and the output of the neural network be yNN(x). Then the final prediction is given by,

where is the sigmoid activation function. For more details, refer to [1].

Training

To train the network, run the following command in terminal

python train.py 

It will train the network using default settings, show the training loss figure and save the trained model as 'model.pt'.

training loss

training mse: 0.01361, testing mse: 0.05956

Model architecture

training loss

References

[1]: Guo, Huifeng, Ruiming Tang, Yunming Ye, Zhenguo Li, and Xiuqiang He. "Deepfm: a factorization-machine based neural network for ctr prediction." arXiv preprint arXiv:1703.04247 (2017).

About

movie recommender system based on matrix factorization and deep neural network


Languages

Language:Python 100.0%