Giter Site home page Giter Site logo

tauraiucb / volrec Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 71 KB

Code for the paper "Session-based Recommendation with Temporal Dynamics for Large Volunteer Networks" published in the Journal of Intelligent Information Systems

Home Page: https://link.springer.com/article/10.1007/s10844-023-00801-4

Python 99.66% Shell 0.34%
gnn recsys

volrec's Introduction

Environment Settings

  • Python 2.7.18
  • Tensorflow 1.4.1
  • Pandas 1.5.1
  • Numpy 1.23.4

Usage

For experimentation, we provide raw data in the 'data' file which should be used as follows:

  1. We first run the vol_network.py where the folder containing the input file should be specified. The output is a volunteer network.
  2. The volunteer network and original file are inputs to the preprocess.py which has the following outputs:
  • train.tsv: includes volunteer historical behaviors, which is organized by pandas.Dataframe in five fields (SessionId UserId ItemId Timestamps TimeId).

  • valid.tsv: the same format as train.tsv, used for tuning hyperparameters.

  • test.tsv: the same format as test.tsv, used for testing model.

  • adj.tsv: includes links to volunteer networks, which is also organized by pandas.Dataframe in two fields (FromId, ToId).

  • latest_session.tsv: serves as 'reference' to target volunteer. This file records all volunteers available session at each time slot. For example, at time slot t, it stores volunteer v's t-1 th session.

  • user_id_map.tsv: maps original string of volunteer id to int.

  • item_id_map.tsv: maps original string of organizer id to int.

  • For shorthand and readability, we use User and Item to denote Volunteer and Organiser, respectively.

Running the code

  • All output files from preprocess.py should be put in a data folder.
  • To run the code, run sh volrec.sh

Data

Reference

  • Please cite our paper if you use this code or data in your own work
@article{muvunza2023session,
 title={Session-based recommendation with temporal dynamics for large volunteer networks},
 author={Muvunza, Taurai and Li, Yang},
 journal={Journal of Intelligent Information Systems},
 pages={1--22},
 year={2023},
 publisher={Springer}
}

volrec's People

Contributors

tauraiucb avatar

Stargazers

 avatar Miguel de Sousa avatar  avatar

Watchers

 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.