My label looks like this
label = [0, 1, 0, 0, 1, 0]
Meaning that classes 1, 4
are present on the matching sample input.
- How do I create one-hot encoded labels for a label like that?
- Which loss function is more appropriate for a case like this (sigmoid cross entropy, softmax cross entropy, or sparse softmax cross entropy)?