Implementation of DSLR: Diversity Enhancement and Structure Learning for Rehearsal-based Graph Continual Learning.
Continual learning method with replay approach on graph structured data. The structure learning framework and experience replay approach were used to prevent catastrophic forgetting.
- The main train/test code is in
train.py - If you want to see the continual GNN model in PyTorch Geometric
MessagePassinggrammar, refer tomodel.py - If you want to see the replay buffer selection stage, refer to
replay.py - If you want to see hyperparameter settings, refer to
train.py
1. Cora
python train.py --dataset cora --replay CD --structure yes --classes_per_task 2 --memory_size 100
2. Amazon Computer
python train.py --dataset amazoncobuy --replay CD --structure yes --classes_per_task 2 --memory_size 200
3. OGB-arxiv
python train.py --dataset ogb_arxiv --replay CD --structure yes --classes_per_task 3 --memory_size 3000