pyGAT icon indicating copy to clipboard operation
pyGAT copied to clipboard

How to apply this model to extract graph features from multiple graphs?

Open BrainLyh opened this issue 1 year ago • 3 comments

Can I understand that the current dataset "cora" in the project only contains one graph, and how can I modify the code to utilize data from multiple graphs for training and generate overall graph embeddings?

BrainLyh avatar May 18 '23 11:05 BrainLyh

Can I understand that the current dataset "cora" in the project only contains one graph, and how can I modify the code to utilize data from multiple graphs for training and generate overall graph embeddings?

As I understand it, GAT can only get embeddings for nodes. If you want to get full-graph embeddings, you need a graph pool method, such as diffpool

hh-hh19 avatar Jun 29 '23 07:06 hh-hh19

Can I understand that the current dataset "cora" in the project only contains one graph, and how can I modify the code to utilize data from multiple graphs for training and generate overall graph embeddings?

Do u know how to utilize data from multiple graphs for training now?

GitHubSOLUTE avatar Jul 22 '24 09:07 GitHubSOLUTE

Can I understand that the current dataset "cora" in the project only contains one graph, and how can I modify the code to utilize data from multiple graphs for training and generate overall graph embeddings?

As I understand it, GAT can only get embeddings for nodes. If you want to get full-graph embeddings, you need a graph pool method, such as diffpool

The question is, now the model's input is like one graph, do I need to change the model' input or architecture?

GitHubSOLUTE avatar Jul 22 '24 10:07 GitHubSOLUTE