Skip to content
Discussion options

You must be logged in to vote

What you can do is run your GNN as normal, and define the edges you are trying to predict as part of edge_label_index. So if you want to make predictions for a single user but all movies, that would be

row = torch.tensor([user_i] * num_movies)
col = torch.arange(num_movies)
edge_label_index = torch.stack([row, col], dim=0)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tirzak
Comment options

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