Losses
Functions
Link copied to clipboard
Binary cross-entropy with logits (numerically stable).
Link copied to clipboard
Binary cross-entropy loss (predictions should be probabilities in 0, 1).
Link copied to clipboard
Categorical cross-entropy (alias for crossEntropy).
Link copied to clipboard
Cross-entropy loss (combines log-softmax with NLL).
Link copied to clipboard
Sparse categorical cross-entropy (integer target indices).
Link copied to clipboard
Squared hinge loss.