[Neighbor Sampler] Can we specify the edges that sampled from the last layer? #4078
-
Hi guys, my question is a little bit complex and let me take an example to show this question: edge_index_1 = a lot of 100 edges
edge_index_2 = a lot of 10 edges
combined_edge_index = torch.cat((edge_index_1, edge_index_2), dim=1)
subgraph_loader = NeighborSampler(combined_edge_index, sizes=[50, 50, 50])
100 src_1 ---|
10 src_2---`--- the tgt_node Let's look at a node at the last layer, the mini-batch node. Suppose, a target-node that have 100 edges/source-nodes from the However, what I focus is actually the 10 edges from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Mh, interesting, we currently do not provide an interface to allow for this. One workaround to ensure that is to sample all neighbors in the first layer (i.e. |
Beta Was this translation helpful? Give feedback.
Mh, interesting, we currently do not provide an interface to allow for this. One workaround to ensure that is to sample all neighbors in the first layer (i.e.
sizes = [-1, 50, 50]
). Does that help in your case?