Giter Club home page Giter Club logo

mkr.pytorch's Introduction

MKR.PyTorch

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

The code is heavily based on the original TensorFlow version.

Requirements

Tested under

  • Python == 3.6
  • PyTorch >= 0.4
  • scikit-learn, tqdm, numpy, matplotlib, tensorboardX

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

  • In src/main.py:
    • Uncomment the code blocks of settings for specific dataset
    • Comment the others you don't need
$ python src/main.py

mkr.pytorch's People

Contributors

hsientzucheng avatar

Stargazers

 avatar  avatar  avatar  avatar NancycyZL avatar Michael Cueva avatar  avatar babaisme avatar W. avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Run avatar Genrong Zheng avatar  avatar cgh avatar  avatar Xinyan Fan avatar  avatar  avatar  avatar Maybe avatar  avatar

Watchers

 avatar paper2code - bot avatar

mkr.pytorch's Issues

Hi hsientzucheng

Hi My name is hsuchengmath .
I recently research recommendation system and my Boss told me that
I read MKR the paper . I had read and try to implement it by Pytorch .
But unfortunately , Though I finish code , the accuracy is not acheived it that MKR model should achieve (approximately 50%) .
After frustration , I search for MKR Pytorch on website and find your GitHub .

Can we be friend ?

negative sampling triples

hi hsientzucheng

i review MRK paper and github code recently for recommendation system
but l can't find negative sampling triples and "scores(positive triple) - scores(negative triple)" loss function
I would be very grateful if you could answer me
thankyou

Operational indicators

Hello Author! I'm a newcomer who just paid attention to the recommendation system. I want to ask some questions. I have read your code thoroughly. How can I view the Topk indicators of your code? What is the result of the Topk indicator? For example, recall, what is the result of f1?

Thank the author for his reply and hope to get your reply.

No module named 'trace_grad'

HI,hsientzucheng.When I run your MKR code,It shows that No module named 'trace_grad',but I can not find trace_grad in Python library. Please help me.thank you!

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.