-
Hey, what algorithms should we use when we exactly know that our dataset consists of not arbitrary graphs but trees? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
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 out = model(data.x, data.edge_index)[data.parent_mask]
F.cross_entropy(out, data.y[data.parent_mask] |
Beta Was this translation helpful? Give feedback.
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: