Skip to content
Discussion options

You must be logged in to vote

If I understand you correctly, this question is more related on how to evaluate/train the model rather than which layer to use inside a model. For example, you can integrate a node-level parent_mask into your data that denotes which node corresponds to a parent and not to a child, and then only evaluate/train on parent nodes:

out = model(data.x, data.edge_index)[data.parent_mask]
F.cross_entropy(out, data.y[data.parent_mask]

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ilyalasy
Comment options

@rusty1s
Comment options

@ilyalasy
Comment options

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