Skip to content
Discussion options

You must be logged in to vote

In that case, you can do something like

test_mask = data.month == 5
train_mask = ~test_mask

If month is a node-level attribute, you would need to lift it to an edge-level attribute afterwards via

test_mask = test_mask[edge_index[0]]
train_mask = train_mask[edge_index[0]]

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rusty1s
Comment options

@adirsolo
Comment options

Comment options

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

Answer selected by adirsolo
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