hsientzucheng / MKR.PyTorch

30 stars 5 forks source link

MKR.PyTorch

This repository is a PyTorch implementation of MKR (arXiv).

The code is heavily based on the original TensorFlow version.

Requirements

Tested under

Running the code

Preprocess

python src/preprocess.py --dataset movie    # for MovieLens-1M dataset
python src/preprocess.py --dataset book     # for Book-Crossing dataset    
python src/preprocess.py --dataset music    # for Last.FM dataset  

Train and evaluate