RGCN Example Link Prediction "--n-epochs" bug
See original GitHub issueTo whom this may concern,
When running the link_predict.py with the --n-epochs flag, I encountered the algo exceeding my specified epochs. On closer inspection, I realized that the break statement to exit out of the while loop is nested within the step to save the best model.
I believe the proper fix should be:
if mrr< best_mrr:
pass
else:
best_mrr = mrr
torch.save({...})
if epoch >= args.n_epochs:
break
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
RGCN Exception on Link Prediction - Deep Graph Library
I was trying to use RGCN implementation for link prediction, however, it does not work. The problem arises when I try to evaluate...
Read more >pytorch_geometric/rgcn_link_pred.py at master · pyg-team ...
Implements the link prediction task on the FB15k237 datasets according to the. `"Modeling Relational Data with Graph Convolutional Networks".
Read more >Relational Graph Convolutional Networks: A Closer Look - arXiv
Abstract. In this paper, we describe a reproduction of the Relational Graph Convolutional Network (RGCN). Using our reproduction, we explain ...
Read more >Graph Neural Networks: Link Prediction (Part II) - Dataiku blog
This article focuses on building GNN models for link prediction tasks ... Sample: Instead of using the entire neighborhood of a given node, ......
Read more >Relational graph convolutional networks: a closer look - PeerJ
Commonly, KGE models are developed and tested using link prediction benchmark datasets. Two key examples of KGEs are TransE (Bordes et al., 2013) ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ll submit a pull request.
Can you try to fix the bug?