|
pulsatrix
|
Softmax + negative log-likelihood classification loss. More...


Go to the source code of this file.
Classes | |
| class | pulsatrix::CrossEntropyLoss |
| loss = -log(softmax(logits)[target_class]), combined for numerical stability (subtract the max logit before exponentiating) rather than computing softmax and log separately. More... | |
Namespaces | |
| namespace | pulsatrix |
Softmax + negative log-likelihood classification loss.