Giter Site home page Giter Site logo

stickycookie / neural-attentive-session-based-recommendation-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wang-shuo/neural-attentive-session-based-recommendation-pytorch

0.0 0.0 0.0 46 KB

A PyTorch implementation of Neural Attentive Session Based Recommendation (NARM)

License: GNU General Public License v3.0

Python 100.00%

neural-attentive-session-based-recommendation-pytorch's Introduction

Neural-Attentive-Session-Based-Recommendation-PyTorch

A PyTorch implementation of the NARM model in Neural Attentive Session Based Recommendation (Li, Jing, et al. "Neural attentive session-based recommendation." Proceedings of the 2017 ACM on Conference on Information and Knowledge Management. ACM, 2017).

architecture

Usage

  1. Install required packages from requirements.txt file.
pip install -r requirements.txt
  1. Download datasets used in the paper: YOOCHOOSE and DIGINETICA. Put the two specific files named train-item-views.csv and yoochoose-clicks.dat into the folder datasets/

  2. Change to datasets fold and run preprocess.py script to preprocess datasets. Two directories named after dataset should be generated under datasets/.

python preprocess.py --dataset diginetica
python preprocess.py --dataset yoochoose
  1. Run main.py file to train the model. You can configure some training parameters through the command line.
python main.py
  1. Run main.py file to test the model.
python main.py --test

neural-attentive-session-based-recommendation-pytorch's People

Contributors

wang-shuo 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.