Losses and objectives · MLD-0149
Categorical cross-entropy
Cross-entropy over a categorical target distribution.
Original reference page · detailed expansion pending. Original definitions, examples, notes and citations are preserved below. New examples are illustrative, not benchmark results.
Original example
Train a single-label multiclass classifier.
Original caveat
Do not apply softmax twice when the loss accepts logits.
Context and aliases
Level: Intermediate. Stages: Theory · Training · Evaluation.
Tags: ML · DL · SLM · LLM.
Aliases: Multiclass log loss.
Related concepts
Original references
- Deep Learning: online textbook ↗ · Consulted
- scikit-learn: evaluation metrics ↗ · Reference link
- PyTorch neural-network layers ↗ · Reference link
- Original reference URL ↗