-
I would like to apply
I've used the following approach, but receive an unexpected error:
When I run the last line I receive this error: Full specification:
I'm unfortunately not able to debug the above. When I call What am I doing wrong here? And is there a better approach for the use case of having multiple graphs in the dataset object? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
It is usually not a good idea to apply batch = Batch.from_data_list(data_list)
loader = NeighborLoader(batch, ...) |
Beta Was this translation helpful? Give feedback.
-
Hi @rusty1s, Thanks so far for your help, really appreciate your work. This may be a stupid question, but I am actually working on a link prediction problem. I used
also, my target link is captured in the Question:
yields:
I think the batch mismatch is problematic and conclude from this that Is it possible to implement |
Beta Was this translation helpful? Give feedback.
-
I ran into this same error, doing a similar thing. First sampling from graphs using What I found was causing the error in my case was the fact that the I fixed it by manually deleting the |
Beta Was this translation helpful? Give feedback.
It is usually not a good idea to apply
NeighborLoader
on a set of graphs. Are you dealing with very large graphs? Otherwise, I suggest to useDataLoader
instead to simply group graphs into batches. If you want to useNeighborLoader
on a set of graphs, you should merge all graphs into a single graph, and then useNeighborLoader
on top: