Edge regression on heterogeneous graphs #9037
-
Recently I wanted to use GNN to solve the problem, and I built several heterogeneous graphs for my problem, each heterogeneous graph has only one type of node and two types of edges. For the sake of illustration, I will use A and B to represent the two types of edges. There are no features on edge A there are no labels, there are no features on nodes, there are only features and labels on edge B, and then I want to be able to predict the value of edge B by GNN. Since I don't know much about GNN, I feel as if there is no model that can implement this idea, and it seems that GNN generally handles graphs that need to have node features. Here is my definition of a heterogeneous graph
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I have another question: For a heterogeneous graph, which has two types of nodes, one type of edge, and only one type of node has features and labels, can there be a model to complete the node regression task (I noticed that pytorch geometric has the function of automatically converting to heterogeneous GNN model)? |
Beta Was this translation helpful? Give feedback.
-
You can well use GNNs for this. The main question is how you wanna deal with "empty" features:
|
Beta Was this translation helpful? Give feedback.
You can well use GNNs for this. The main question is how you wanna deal with "empty" features:
torch.nn.Embedding
)torch.ones(num_nodes, 1)