Replies: 1 comment
-
It looks like your targets do not start from zero. If you have three classes, then |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hello, I got a problem:
I am trying to do a multiclass classification of drug activity using a GCN, I have three activity classes and this is my network:
When I train the net with
nll_loss
I get this error "Target 3 is out of bounds", I tried to use another loss function (likeMSEloss
) but then I get the error "The size of tensor a (3) must match the size of tensor b (64) at non-singleton dimension 1 "(64 is my batch size). What can I do?Beta Was this translation helpful? Give feedback.
All reactions