Skip to content

RandomLinkSplit and LinkNeighborLoader for a series of Heterogenous graphs in a Dataset object class #7181

Answered by rusty1s
snknitin asked this question in Q&A
Discussion options

You must be logged in to vote

If you are working with multiple graphs, the best choice for dataloading should be the default DataLoader of PyG. In your case, this is a bit problematic because the transform returns a tuple of data objects. As such, you need to convert that into three dataset, which you can do via

train_dataset, val_dataset, test_dataset = zip(*dataset)

I added a short test for this, see #7211

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@snknitin
Comment options

@rusty1s
Comment options

@snknitin
Comment options

@wgeul
Comment options

Answer selected by snknitin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants