Giter Club home page Giter Club logo

apegnn's Introduction

ApeGNN: Node-Wise Adaptive Aggregation in GNNs for Recommendation

ApeGNN develops a node-wise adaptive diffusion mechanism for information aggregation, in which each node is enabled to adaptively decide its diffusion weights based on the local structure (e.g., degree).

This is our PyTorch implementation for WWW'23 paper:

Environment Requirements

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

  • pytorch == 1.9.1+cu111

Usage Example

Running one trial of Heat Kernel on AMiner:

nohup python main.py --dataset aminer --gnn ApeGNN_HT --pool sum --Ks '[20, 50]' --step 1 --runs 1 --e 1e-7 --gpu_id 1 > ./logs/aminer/ApeGNN_HT.log 2>&1 &

Running one trial of PPR on AMiner:

nohup python main.py --dataset aminer --gnn ApeGNN_APPNP --pool sum --Ks '[20, 50]' --step 1 --runs 1 --e 1e-7 --gpu_id 1 > ./logs/aminer/ApeGNN_APPNP.log 2>&1 &

Dataset

In the main results compared with representative models, we use six processed datasets: Ali, Amazon, AMiner, Gowalla, MovieLens, and Yelp2018.

Dataset #Users #Items #Interactions Density
Ali 106,042 53,591 907,407 0.016
Amazon 192,403 63,001 1,689,188 0.014
AMiner 5,340 14,967 163,084 0.204
Gowalla 29,858 40,981 1,027,370 0.084
MovieLens 6,040 3,416 999,611 4.362
Yelp2018 31,668 38,048 1,561,406 0.130

Citing

If you find this work is helpful to your research, please consider citing our paper:

@inproceedings{zhang2023apegnn,
  title={ApeGNN: Node-Wise Adaptive Aggregation in GNNs for Recommendation},
  author={Zhang, Dan and Zhu, Yifan and Dong, Yuxiao and Wang, Yuandong and Wenzheng, Feng and Kharlamov, Evgeny and Tang, Jie},
  booktitle={WWW'23},
  year={2023}
}

apegnn's People

Contributors

zhangdan0602 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ychuest

apegnn's Issues

The problem of reproducing global variables

test_one_user(x)function,the global variable 'test_ user_ set 'inside, an error will occur:NameError: name 'test_user_set' is not defined
.I have tried many methods and I don't know why. The environment configuration is also the same. Can you help me provide some suggestions? 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.