Skip to content

code for "Self-supervised representation learning on dynamic graphs"

Notifications You must be signed in to change notification settings

ckldan520/DDGCL

Repository files navigation

DDGCL

code for "Self-supervised representation learning on dynamic graphs" [paper]

Requirements

Dependencies (with python >= 3.6):

tensorflow==1.13.1  
numpy==1.16.4  
scikit_learn==1.0
alive_progress==2.1.0

Preprocessing

Dataset

Create a folder 'dataset' to store data file.

Wikipedia
Reddit
MOOC

Preprocess the data

We use the data processing method of the reference TGAT, repo.

We use the dense npy format to save the features in binary format. If edge features or nodes features are absent, it will be replaced by a vector of zeros.

python process.py --data wikipedia

Model Training

Multi task learning on dynamic node classification

python mtl_train.py wikipedia

Self-supervised learning on dynamic node classification

python pre_train.py wikipedia pre_train
python pre_train.py wikipedia fune_train

About

code for "Self-supervised representation learning on dynamic graphs"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages