0
$\begingroup$

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?

$\endgroup$

1 Answer 1

1
$\begingroup$

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.

$\endgroup$

You must log in to answer this question.

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