Based on the paper: Neural Collaborative Filtering
- Roger Solis
- Qiancheng Liu
- Haiping Xue
- Henry Qiu
The latest changes are mantained on the master branch
- "data" Contains the datasets
- "movie_lens_explict" Contains the improved version of the NCF paper. Here we use explicit ratings
- "movie_lens_implict" Contains the implementation of the NCF paper. Here we only consider user interaction with movies
- "yelp_explict" Contains the model that works with user ratings and user reviews using doc2vec
You will need to install the following packages on you python environment
Once you have dedided the approach of you preference (implicit, explicit, yelp datase), you should switch to the proper folder and then follow the next steps to see the results we got.
- Make sure the data files are present on the data directory. If they are not, download them and put them into its respective folder right before running the model.
- We have included the pretraining for the MLP and GMF models in a single file along with the complete model. Therefore, in order to run our code you should run the script full_model.py.
full_model.py will train the GMF and MLP models, save its weights, feed them into the full model, train the full model, store the model for future references and finally, will load the testing data and feed it into the trained model. Right after, evaluation is performed over the predicted data, and will be saved in the outputs folder.