Replies: 1 comment 9 replies
-
This is currently only possible by ensuring that |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using the
LinkNeighborLoader
for link prediction for some edges. To avoid data leakage, I want the two subgraphs generated for a link to be disjoint, meaning there is no path between them. But when I setdisjoint=True
, the returned Data object contains anedge_label_index
size(2,2)
. Shouldn't theedge_label_index
just contain my input link?As I use
batch_size=1
and the output of.batch
is all zeros for every result, I presume thedisjoint
option is for multiple batches, and thatLinkNeighborLoader
guarantees no data leakage, but I wanted to ask here to make sure.These are my arguments:
LinkNeighborLoader(data=data, edge_label_index=eli, edge_label=el, num_neighbors=[80,40], batch_size=1, is_sorted=True, shuffle=False, disjoint=True)
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions