Say my target with classes A, B, C, D, E
is [0, 1, 1, 0, 0]
.
And my output layer is of B x N where N is the number of classes.
How do I use Categorical Cross Entropy for this?
Artificial Intelligence Stack Exchange is a question and answer site for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment. It only takes a minute to sign up.
Sign up to join this communityYou want to treat the problem as binary classification, and of course use binary cross-entropy.
The only requirement is to ensure to use a sigmoid activation in your model's last layer.