Skip to content
Discussion options

You must be logged in to vote
  1. Yes, directly using the features will result in data leakage. What you can do is to mask out the features that you want to predict, and only use neighboring node features to infer their values:
def forward(self, batch)
    x = batch.x
    x[:batch.batch_size] = 0.
    # Proceed as usual.
  1. With PyG 2.1.0, we now also support temporal sampling (see the NeighborLoader.time_attr attribute for more information).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@do-lania
Comment options

@rusty1s
Comment options

Answer selected by do-lania
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