-
Hi! Thanks for such amazing tool! I have a use case: There is a graph with 3000 edges, both nodes and edges have some features. When removing a edge from the graph, a score got. I would like to predict such score(related to number of nodes, shortest paths & other features). How can I perform PyG to a graph level prediction? It seems a graph level prediction problem. Thanks for any advice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You'll probably need to use some sort of pooling layer to pool node/edge features. See an example of using topk pool to make graph level predictions on a protein here. You can find all pooling layers in pyg here |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply @wsad1 . Let me describe the question a bit more. Assume that there is a graph with m nodes, n edges, every time when removing a or serval edge(s) from the graph, a defined score is calculated. Now I would like to predict the value of the score when removing a/some new edges from the graph. My solution: convert this question into a graph level prediction question. After removing a/some edges from the graph, actually we can get/generate a new graph. So we can get a dataset contains a lot of graphs by random removing edges from the graph. Each graph is corresponding to a score -> predict label. Now the issue is predict such score for a given graph. My questions:
Thanks! |
Beta Was this translation helpful? Give feedback.
Thanks for your reply @wsad1 . Let me describe the question a bit more.
Assume that there is a graph with m nodes, n edges, every time when removing a or serval edge(s) from the graph, a defined score is calculated. Now I would like to predict the value of the score when removing a/some new edges from the graph.
My solution: convert this question into a graph level prediction question. After removing a/some edges from the graph, actually we can get/generate a new graph. So we can get a dataset contains a lot of graphs by random removing edges from the graph. Each graph is corresponding to a score -> predict label. Now the issue is predict such score for a given graph.
My questions: