Code Monkey home page Code Monkey logo

kbgnn's Introduction

KBGNN

This is the pytorch implementation for our ICDM 2022 paper:

Wei Ju, Yifang Qin, Ziyue Qiao, Xiao Luo, Yifan Wang, Yanjie Fu, and Ming Zhang(2022). Kernel-based Substructure Exploration for Next POI Recommendation

In this paper, we propose a Kernel-Based Graph Neural Network (KBGNN) for next POI recommendation, which combines the characteristics of both geographical and sequential influences in a collaborative way.

Please cite our paper if you use the code.

Environment Requirement

The code has been tested running under Python 3.8.13. The required packages are as follows:

  • pytorch == 1.11.0
  • torch_geometric == 2.0.4
  • pandas == 1.4.1
  • sklearn == 0.23.2 ``

Running Example

For example, to generate Foursquare-Tokyo data for KBGNN models, firstly the raw data should be downloaded and unzipped at ~/raw_data/.

After the download, run:

mkdir processed && cd processed
mkdir tky
cd ../utils
python process_data.py

which will generate processed data files under the directory ~/processed/tky/.

To conduct experiment on Foursquare-Tokyo, run:

cd ./model
python main.py --data tky --batch 1024 --patience 10 --gcn_num 2 --max_step 2

For more execution arguments of KBGNN, please refer to ~/model/main.py or run

python main.py -h

kbgnn's People

Contributors

yifang-qin avatar

Stargazers

 avatar  avatar Xiao Luo avatar  avatar  avatar d_jq avatar Xinyu Zhang avatar  avatar nicolemalik avatar fangz avatar euphoria avatar Ju Wei avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

kbgnn's Issues

关于geograph的代码问题

感谢作者开源论文相关代码,想请问一下源代码GeoGraph中如下四行代码的实现是否有问题:
image
据我所知,使用to_undireted之后,edge_index和concatenate之后的dist_vec并不是一一匹配的。

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.