SUGRL: Simple Unsupervised Graph Representation Learning

September 12, 2022 ยท View on GitHub

This repository contains the reference code for the paper Simple Unsupervised Graph Representation Learning

Contents

  1. Installation
  2. Preparation
  3. Training
  4. Testing

Installation

pip install -r requirements.txt

Preparation

Pretrained model see >>>here<<<.

Configs see >>>here<<<.

Dataset (--dataset-class, --dataset-name,--Custom-key)

Dataset classDataset nameCustom key
PlanetoidCoraclassification
PlanetoidCiteSeerclassification
PlanetoidPubMedclassification
MyAmazonPhotoclassification
MyAmazonComputersclassification
PygNodePropPredDatasetogbn-arxivclassification
PygNodePropPredDatasetogbn-magclassification
PygNodePropPredDatasetogbn-productsclassification

Important args:

  • --pretrain Test checkpoints
  • --dataset-class Planetoid, MyAmazon, PygNodePropPredDataset
  • --dataset-name Cora, CiteSeer, PubMed, Photo, Computers, ogbn-arxiv, ogbn-mag, ogbn-products
  • --custom_key classification, link, clu

Training

python train.py 

Testing

Choose the custom_key of different downstream tasks

Citation

@InProceedings{Mo_AAAI_2022, 
title={Simple Unsupervised Graph Representation Learning}, 
booktitle={Proceedings of the AAAI Conference on Artificial Intelligence (AAAI)}, 
author={Mo, Yujie and Peng, Liang and Xu, Jie and Shi, Xiaoshuang and Zhu, Xiaofeng},
year={2022}, 
pages={7797-7805} 
}