Multi-class Classification #8176
-
What shape does my
So I have a feeling, my
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The input into |
Beta Was this translation helpful? Give feedback.
-
I missed labeled my question, its multi-label, not multi-class. I changed the criterion to Now i just have to figure out how to measure accuracy. |
Beta Was this translation helpful? Give feedback.
I missed labeled my question, its multi-label, not multi-class. I changed the criterion to
BCEWithLogitsLoss
and the optimizer toSGD
.Each label has a 1 for its associated class and all will have at least 2 ones and 2 zeros, i.e.
data.y = torch.tensor([[1.,0.,1.,0.]], dtype=torch.float)
.Now i just have to figure out how to measure accuracy.