GithubHelp home page GithubHelp logo

dgtn's Introduction

DGTN: Dual-channel Graph Transition Network for Session-based Recommendation

This repository contains PyTorch Implementation of ICDMW 2020 (NeuRec @ ICDM) paper: DGTN: Dual-channel Graph Transition Network for Session-based Recommendation. Please check our paper for more details about our work if you are interested.

Usage

Following the steps below to run our codes:

1. Preprocess

The preprocess code is in preprocess/

2. Neighbors retrieval

Please run neigh_retrieval/neighborhood_retrieval.py

3. Run the model

Please run main.py

Requirements

  • Python 3
  • PyTorch 1.1.0

Citation

If you find this repo is useful for you, please kindly cite our paper.

@inproceedings{zheng2020dgtn,
    title={DGTN: Dual-channel Graph Transition Network for Session-based Recommendation},
    author={Zheng, Yujia and Liu, Siyi and Li, Zekun and Wu, Shu},
    booktitle={ICDMW},
    year={2020},
}

dgtn's People

Contributors

kunwuz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dgtn's Issues

Dataset

Could you give me the preprocessed result of Diginetica? Thank you very much.

Error ocurred when running neighborhood_retrieval.py

Hi, I follow the usage in the readme and an error occurred when I run neighborhood_retrieval.py using the “Diginetica” dataset.
The console shows that :
File "..\DGTN-master\neigh_retrieval\knn.py", line 58, in find_sess
sess_index += item_sess_map[item]
KeyError: 31938

I think the error is resulted from the function get_item_sess_map in knn.py line 19:
items = np.unique(sess[:-1])
because the item_id:31938 may be the last click item in the session, and it is not the recorded in the item_sess_map
I wonder if it is reasonable to change this line into "items = np.unique(sess) " to solve the problem?

looking forward to u reply, thank u!

experiment

hi.
I cannot achieve the results in your paper using Diginetica data set. Are there any other parameters that need to be set?

experiment

Hi,
Under the convolution fusion function, when running the program with different neighborhood files, the experimental results did not change, but when running under the max function, the results changed but did not reach the results in your paper.

Is the neighborhood data generated by me wrong? Looking forward to your reply . Thank you very much!

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.