mims-harvard / SubGNN

Subgraph Neural Networks (NeurIPS 2020)
https://zitniklab.hms.harvard.edu/projects/SubGNN
MIT License
185 stars 33 forks source link

Similarities files #4

Closed wangzeyu135798 closed 3 years ago

wangzeyu135798 commented 3 years ago

Hi: After downloading data, there are six .npy files in config_files/hpo_metab/similarities. I want to learn how to make them?

EmilyAlsentzer commented 3 years ago

Hi @wangzeyu135798, I just added the code to precompute pairwise shortest paths, ego graphs, and degrees. See the README for details. The .npy files in the similarities folder will be generated while running SubGNN if they do not exist (see get_similarities function here). If they already exist, SubGNN will read them in from file. Hope this helps! Feel free to reopen the issue if you have additional questions.