GithubHelp home page GithubHelp logo

fire's Introduction

Hi there👋.

This repository is the official implementation of the paper FIRE: Fast Incremental Recommendation with Graph Signal Processing, which is accepted by The Web Conference 2022.

If you use the code in your work, please cite our paper.

How to run the code

Step 1: Check the compatibility of your python packages, we recommend you to use the following setting that has passed our test if you want to reproduce the results.
numpy == 1.19.4
pandas == 1.1.4
python == 3.6.11
scipy == 1.5.3
sklearn == 0.23.2
sparsesvd == 0.2.2
Step 2: prepare the dataset.
  • If you use the default datasets (Movielens 1M or Douban Movie), please unzip the dataset under the directory dataset/ first;

  • If you use your own dataset, you should make sure that the format of your dataset is compatible with the setting (i.e. the following variables) in dataloader.py

    • sep : the separation symbol between columns in dataset (default: '\t')
    • header_name: the header name of data frame generated from dataset (default: ['u', 'i', 'r', 't'])
    • pos_type: The type of positive interactions (default: [4.0, 5.0]).

    Note: You should disable the comment of Line 23-27 in dataloader.py to generate a new column named 'm' when loading data if you use your own dataset.

Step 3: Run the model.
  • For Movielens 1M dataset:

    python main.py --dataset ml1m  --use_user_si --use_item_si
  • For Douban Movie dataset:

    python main.py --dataset douban_movie --num_his_month 9 --num_cur_month 1 --decay_factor 1e-8 --pri_factor 128 --alphas '[0.2,1.0,0,0.2]' --use_item_si --user_threshold 0 --item_threshold 0.6
    

fire's People

Contributors

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