Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems on training new SubgraphX gnns #91

Closed
ZhaoningYu1996 opened this issue Apr 1, 2022 · 1 comment
Closed

Some problems on training new SubgraphX gnns #91

ZhaoningYu1996 opened this issue Apr 1, 2022 · 1 comment
Labels
xgraph Interpretability of Graph Neural Networks

Comments

@ZhaoningYu1996
Copy link

Hi,

I am planning to train a new SubgraphX on the Mutagenicity dataset.
I find a line in MUTAGDataset class:
adj_all = np.zeros((len(nodes_all), len(nodes_all)))
This line will create a really large array when the size of the dataset is large. (For Mutagenicity, the shape of the array is (131488, 131488))
Could you tell me how can I do to avoid the out-of-memory issue?

Thank you,
Zhaoning

@mengliu1998 mengliu1998 added the xgraph Interpretability of Graph Neural Networks label Apr 5, 2022
@Oceanusity
Copy link
Collaborator

Hello.
This code is especially for the MUTAG datasets with 189 molecules.
I think you can write codes for the Mutagenicity datasets to read the graph with sparse matrix, and the key is to save torch_geometric.data.Data to the data_list for each graph.

@CM-BF CM-BF closed this as completed Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
xgraph Interpretability of Graph Neural Networks
Projects
None yet
Development

No branches or pull requests

4 participants