Skip to content
Discussion options

You must be logged in to vote

Let me try to clarify. From my understanding, you have a edge_index and a corresponding 52-dim feature vector edge_attr. Each edge belongs to a given year (e.g., edge_time vector). During training/evaluation, you make predictions for the last year t. As such, you can divide the set of edges into training/evaluation edges and message passing edges

# The edges to train/evaluate against:
mask = edge_time == t
edge_label_index = edge_index[:, mask]
edge_label = edge_attr[mask]

# Use previous information within GNN:
edge_index = edge_index[:, ~mask]
edge_attr = edge_attr[~mask]

You can then simple split edge_label_index randomly into training, validation and test sets.

Replies: 1 comment 9 replies

Comment options

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

@rusty1s
Comment options

@snknitin
Comment options

@rusty1s
Comment options

Answer selected by snknitin
@snknitin
Comment options

@rusty1s
Comment options

@snknitin
Comment options

@qoffee
Comment options

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