"Augmentations in Graph Contrastive Learning: Current Methodological Flaws & Towards Better Practices"
This code uses:
- python 3.8
- torch 1.11.0
- torch-geometric 2.0.4
- PyGCL 0.1.2
datasets_mnist.py
: provides implementations for the node dropping and colorizing augmentations.run_BYOL.py
: contains code for running the BYOL on MNIST using either the node dropping or colorizing transforms.examples/compute_invariance_sep.py
: given a trained checkpoint, compute invariance and separability scores. Seerun_compute_invariance.sh
for an example.
This code is inspired by and makes us of several great code bases. We especially thank the authors of PyGCL, GraphCL, AD-GCL, EDA, and Benchmarking GNNs.