Question about node classification examples #2255
Unanswered
whtitefall
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Yes, the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm new to GNN, I'm trying to do a project about node classification,
basically, I'm trying to model molecules using GCN and predict which atom will have a certain chemical reaction (so, atoms are nodes here)
the inputs are atom features, bond features, bond index,
the output is an array where each of the elements represents the probability of the chemical reaction will happen at this atom,
e.g.
input:
Data(edge_attr=[64, 6], edge_index=[2, 64], x=[29, 82], y=[29, 1])
output:
same shape as y=[29,1], with probability ranged from 0 - 1
here's my example code for the model,
but the result returns all ones, I'm kind of confused about it,
I'm wondering if anyone can point out any examples or tell me where I did wrong in this case,
in particular, I'm wondering is it correct to pick the max value
out_max
from the model output as the prediction to calculate the loss?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions