LinkNeighborLoader changes the lable of edge_label_index #9405
-
Hi, I’m need help with a bipartite graph I’m working on. based on the nature of my problem, my graph consists of two distinct predefined types of edges: “message passing” and “supervised.” The supervised edges in my problem are already assigned binary labels. I want to use supervised_label = 0 to denote my negative samples. I have carefully prepared my I plan to employ I’m focusing on some nodes from my dataset. For my
The corresponding
Here, the label for the edge (6, 6) is clearly 1. However, after executing my code, the
With the corresponding edge_labels of:
In this case, two new edges (7,7) and (3,3) have been added due to sampling, which is acceptable. However, the label for edge (6,6) has been changed to 0. and why it didn't include edges of (9,9) and (8,8) which are in train edge_label_index? Could someone clarify if my interpretation is correct? Why would the label change?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Please note that the mini-batch assigns new node IDs based on the sampled subgraph. As such, it is not expected that your
|
Beta Was this translation helpful? Give feedback.
Please note that the mini-batch assigns new node IDs based on the sampled subgraph. As such, it is not expected that your
edge_label_index
matches with the originaledge_label_index
. The remapping can be performed via