Skip to content

This is code for our WWWJ paper《HMGCL: Heterogeneous Multigraph Contrastive Learning for LBSN Friend Recommendation》

Notifications You must be signed in to change notification settings

liyongkang123/HMGCL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HMGNN

This is code for our WWWJ paper《HMGCL: Heterogeneous Multigraph Contrastive Learning for LBSN Friend Recommendation》

Before to execute HMGCL, it is necessary to install the following packages:
pip install dgl
pip install torch
pip install scikit-learn

Requirements

  • numpy ==1.13.1
  • torch ==1.7.1
  • scikit-learn==1.0.2
  • dgl ==0.7.2

Data Set

You can download whole raw Foursquare Dataset here.

Our data can be found at here.

Basic Usage

  • --run main.py to train the HMGCL. and it probably need at least 11G GPU memory
  • --run test.py to estimate the performance of HMGCL based on the user representations that we learned during our experiments. You can also use this code to individually test the effects of your own learned representation.

Miscellaneous

Note: This is only a reference implementation of HMGCL. Our code implementation is partially based on the DGL library, for which we are grateful.

About

This is code for our WWWJ paper《HMGCL: Heterogeneous Multigraph Contrastive Learning for LBSN Friend Recommendation》

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages