Pytorch_geometric: link prediction

Created on 20 Aug 2019  ยท  7Comments  ยท  Source: rusty1s/pytorch_geometric

โ“ Questions & Help


Is there an example of RGCN doing link prediction?

feature

Most helpful comment

๐Ÿ‘€ ๐Ÿ‘€ โžก๏ธ /examples/link_pred.py@master ๐ŸŽ‰

Hi, I think there are several errors in this Link Prediction example. I opened an issue about it here #1121

It is fixed now ๐Ÿ˜Š #1124

All 7 comments

No, we sadly do not have a link prediction example of RGCN, but it should be relatively easy to implement. The main part would be to add the necessary datasets to the repository. Feel free to work on it if you like :)

hello @Purpleheather

Here is a repo about link prediction in github.
NOTE THAT it is implemented on TensorFlow 1.7.0 and networkx 2.0 (the repo's owner shows that networkx 2.0+ does not work, in this issue)

and its arxiv preprint paper: Link Prediction Based on Graph Neural Networks

I installed it and run it on the environment below:
Ubuntu 16.04 (NO CUDA)
Python 3.7
TensorFlow 1.13.1

I do not know your environment. And I run the repo's gnn_implementation folder, whose main.py uses mutag dataset. (in fact, we have mutag dataset in pyg)

in ./GNN_implement/gnn.py: 118-131 (118-131 lines) shows its gnn network. I think it is a GCN.

hope to help you a little.

yours sincerely
@wmf1997

@WMF1997, interesting to follow this thread. I might give a try to SEAL.

Best,
T.C

Here is the pytorch version: https://github.com/muhanzhang/SEAL

๐Ÿ‘€ ๐Ÿ‘€ โžก๏ธ https://github.com/rusty1s/pytorch_geometric/blob/master/examples/link_pred.py ๐ŸŽ‰

Hi, I think there are several errors in this Link Prediction example. I opened an issue about it here https://github.com/rusty1s/pytorch_geometric/issues/1121

๐Ÿ‘€ ๐Ÿ‘€ โžก๏ธ /examples/link_pred.py@master ๐ŸŽ‰

Hi, I think there are several errors in this Link Prediction example. I opened an issue about it here #1121

It is fixed now ๐Ÿ˜Š #1124

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zc-alexfan picture zc-alexfan  ยท  3Comments

a060146251 picture a060146251  ยท  3Comments

WMF1997 picture WMF1997  ยท  4Comments

liaopeiyuan picture liaopeiyuan  ยท  3Comments

FerranAlet picture FerranAlet  ยท  4Comments