Graph-Level Features Used for Training not Final Output #8921
-
Has anyone tried using a graph-level feature strictly for the training, and it has nothing to do with the final output? For example, if I'm performing graph classification, where |
Beta Was this translation helpful? Give feedback.
Answered by
anthonysirico
Feb 18, 2024
Replies: 1 comment 2 replies
-
You can integrate graph-level features by concatenating it to your input features, e.g.: x = torch.cat([x, graph_x[batch]], dim=-1) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If my
data.x
shape is[14,2]
and my graph-level feature is[1]
, how does that work when usingtorch.cat
?