Skip to content
Discussion options

You must be logged in to vote

I missed labeled my question, its multi-label, not multi-class. I changed the criterion to BCEWithLogitsLoss and the optimizer to SGD.
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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@anthonysirico
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonysirico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants