divelab / DIG

A library for graph deep learning research
https://diveintographs.readthedocs.io/
GNU General Public License v3.0
1.84k stars 281 forks source link

GNNExplainer: apply opt only for a target label #116

Closed alirezadizaji closed 2 years ago

alirezadizaji commented 2 years ago

Hi, I was running GNNExplainer optimization on GPU and realized that it's a bit slow due to getting edge masks for all existing labels. I added an option to also support optimization only for a target label.

CM-BF commented 2 years ago

Thank you for the useful feature! I hope to include your contributions to our branch. But here are some issues before I can apply to merge.

Thank you again for your contributions. Please contact me if any discussion. 😄

alirezadizaji commented 2 years ago

Sure about the first one, but are you sure about PGExplainer modification in this PR? Indeed, I had dropped unrelated commits and "Files Changed" tab also shows only one file modification

alirezadizaji commented 2 years ago

Shall I close this and open a new pull request because I changed target branch in edit part and it brought some additional files too

CM-BF commented 2 years ago

You are right. I was carelessly confused by the checkpoint comparison. And, yes, please reopen a new pull request.