This is the code for the Recommender System which uses the lightfm recommender system library to train a hybrid algorithm that uses the WARP loss function on the movielens dataset. It prints out recommended movies for whatever user id from the dataset that we choose.
The WARP loss function is used here after plotting and comparing the AUC score of the 4 loss functions present in lightfm library-
- WARP (Weighted Approximate-Rank Pairwise)
- BRP (Bayesian Personalised Ranking)
- k-OS WARP
- Logistic
##Dependencies
- numpy (http://www.numpy.org/)
- scipy (https://www.scipy.org/)
- lightfm (https://github.com/lyst/lightfm)
- matplotlib (https://matplotlib.org/)