How to create mini-batches for weighted graphs given that LinkNeighborLoader
doesn't take edge_weight
?
#6970
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a link prediction model for a weighted bipartite graph. Say the task is to predict if a query might be intended for a type of product and
edge_weight
captures the total clicks of each<query, product type>
pair.Since this is a link prediction task, I want to use
LinkNeighborLoader
to create mini-batches with a fixed number of links in each batch by doing something like this:However,
LinkNeighborLoader
doesn't haveedge_weight
as an attribute. How else can I create mini-batches for a weighted graph? One solution is to repeated edges as many times as there are weights. However, search data is already in huge volume so repeating edges is not really feasible. Many thanks for any advice!Beta Was this translation helpful? Give feedback.
All reactions