Giter VIP home page Giter VIP logo

nce_projected_lrec's Introduction

Noise Contrastive Estimation Projected Linear Recommender(NCE-PLRec)

If you are interested in building up your research on this work, please cite:

@inproceedings{sigir19a,
  author    = {Ga Wu and Maksims Volkovs and Chee Loong Soon and Scott Sanner and Himanshu Rai},
  title     = {Noise Contrastive Estimation for One-Class Collaborative Filtering},
  booktitle = {Proceedings of the 42nd International {ACM} {SIGIR} Conference on Research and Development in Information Retrieval {(SIGIR-19)}},
  address   = {Paris, France},
  year      = {2019}
}

Author Affiliate

| |

Algorithm Implemented

  1. Noise Contrastive Estimation Projected Linear Recommender(NCE-PLRec)
  2. Variational Autoencoder for Collaborative Filtering(VAE-CF)
  3. Collaborative Metric Learning(CML)
  4. Auto-encoder Recommender(AutoRec)
  5. Collaborative Denoising Auto-Encoders(CDAE)
  6. Weighted Regularized Matrix Factorization(WRMF)
  7. Pure SVD Recommender(PureSVD)
  8. Bayesian Personalized Ranking(BPR)
  9. Noise Contrastive Estimation through SVD(NCE-SVD)
  10. Popularity

Data

  1. Movielens 1M,
  2. Movielens 20M,
  3. Yahoo 1R,
  4. Netflix,
  5. Amazon Digital Music (2018),
  6. Amazon Video Games (2018)

Experiment result for the validation datasets are listed under tables folder. The experiments are conducted on Compute Canada cluster with multiple runs with all valid hyper-parameter combinations. Please use those as benchmark reference if needed.

Data is not suit to submit on github, so please prepare it yourself. It should be numpy npy file directly dumped from csr sparse matrix. It should be easy..

Measure

The above algorithm could be splitted into two major category based on the distance measurement: Euclidean or Cosine. CML is a euclidean distance recommender. And, ALS is a typical Cosine distance recommender. When doing evaluation, please select similarity measurement before running with --similarity Euclidean

Example Commands

Single Run

python main.py -d datax/ -m VAE-CF -i 200 -l 0.0000001 -r 100

Hyper-parameter Tuning and Paper Result Reproduction

Split data in experiment setting, and tune hyper parameters based on yaml files in config folder. Please note the reproduce_paper_results.py will load pretrained model for Movielens1m from latent folder if that folder is not given in parameter.

python getmovielens.py --implicit -r 0.5,0.2,0.3 -d datax/ -n ml-1m/ratings.csv
python tune_parameters.py -d datax/ -n movielens1m/autorec.csv -y config/autorec.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/bpr.csv -y config/bpr.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/cdae.csv -y config/cdae.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/cml.csv -y config/cml.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/vae.csv -y config/vae.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/wrmf.csv -y config/wrmf.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/puresvd.csv -y config/puresvd.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/nceplrec.csv -y config/nceplrec.yml -gpu
python tune_parameters.py -d datax/ -n movielens1m/plrec.csv -y config/plrec.yml -gpu

Please check out the cluster_bash folder for further command details

Resplit data into two datasets: one for train, one for test. Note the train dataset includes validation set in previous split

python getmovielens.py --implicit -r 0.7,0.3,0.0 -d datax/ -n ml-1m/ratings.csv
python reproduce_paper_results.py -p tables/movielens1m -d datax/ -v Rvalid.npz -n movielens1m_test_result.csv -gpu
python reproduce_paper_results.py

nce_projected_lrec's People

Contributors

wuga214 avatar scheeloong avatar k9luo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.