williamleif / GraphSAGE

Representation learning on large graphs using stochastic graph convolutions.
Other
3.41k stars 841 forks source link

networkx issue with reddit dataset #197

Open ashiqimranintel opened 1 year ago

ashiqimranintel commented 1 year ago

I tried to convert the code into tensorflow 2.X (2.10), wanted to run reddit dataset, since networkx 1.11 is not compatible with TF 2.X, getting following error Removed 231443 nodes that lacked proper annotations due to networkx versioning issues.

how can I resolve it?

hacertilbec commented 1 year ago

I tried to convert the code into tensorflow 2.X (2.10), wanted to run reddit dataset, since networkx 1.11 is not compatible with TF 2.X, getting following error Removed 231443 nodes that lacked proper annotations due to networkx versioning issues.

how can I resolve it?

Hi @ashiqimranintel , I did some changes on the code on my own and opened a new repo, now it can work on with new versions of python, networkx and tensorflow. You can check if it works in your case : https://github.com/hacertilbec/GraphSAGE

ashiqimranintel commented 1 year ago

@hacertilbec , thanks for sharing your repo. I tried to run reddit dataset, but getting same issue. The issue is in utils.py can you give a try to run on reddit dataset?