GithubHelp home page GithubHelp logo

ham's Introduction

The HAM models for Sequential Recommendation

The pytorch implementation of the paper:

HAM: Hybrid Associations Models for Sequential Recommendation Arxiv: https://arxiv.org/pdf/2002.11890.pdf

Author: Bo Peng ([email protected])

Feel free to send me an email if you have any questions.

Environments

  • python 3.7.3
  • PyTorch (version: 1.2.0)
  • numpy (version: 1.16.2)
  • scipy (version: 1.2.1)
  • sklearn (version: 0.20.3)

Dataset and Data preprocessing

Please refer to our paper for the details of datasets and the preprocessing procedure. we upload the CDs and ML-1M datasets for the seek of reproducibility. Please feel free to contact me if you need more preprocessed data.

Example

Please refer to the following example on how to train and evaluate the model (you are recommended to run the code using GPUs).

python run.py --data=CDs --n_iter=300 --L=5 --T=3 --d=400 --model=xHAM --neg_samples=3 --P=2 --isTrain=0 --setting=CUT --l2=1e-3 --order=2

Acknowledgment

The training framework is primarily built on HGN. Thanks for the great work!

ham's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.