NeighborLoader/LinkNeighborLoader on Hetero Data #5269
Replies: 2 comments 6 replies
-
This is still TBD, sorry. Currently, only single node types/edge types can be used as seed nodes. We have an open PR out to fix this, see #5013. |
Beta Was this translation helpful? Give feedback.
-
Hello,
If I understood correctly, I could use this to predict links of different types as long as these links start from a node of type specified in As an example, would this be correct ?
In the case I would like to predict both links My final goal is to train a model to predict multiple links of multiples types between multiple types of nodes, maybe there exists an other solution ? Best, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm currently trying to work with Heterogeneous Data, the data consists of two node types and ~900 edge types, I'm not sure how to make use of the mini-batch samplers with HeteroData, using the LinkNeighborLoader I have to input the edge_label_index, but I understand it is only possible to pass one edge_type, the same happens with edge_label. When I pass only one edge type it works,
train_loader = LinkNeighborLoader(train_data, num_neighbors = {key: [-1]*2 for key in train_data.edge_types } ,shuffle = True, edge_label_index = train_data.edge_types[0], edge_label=None, batch_size = 128)
The documentation indicates that I can pass a Tensor, EdgeType, or a Tuple with edge types and their indices, but wouldn't it only consider the labels for that particular edge type?
Or do I need to use the NeighborLoader? But I can only pass a node type into input_nodes.
Beta Was this translation helpful? Give feedback.
All reactions