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?


1 Answer 1


You 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.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .