liveBook · Manning

Cross entropy loss

As explained in Deep Learning with R, Third Edition

Categorical cross-entropy is a multiclass classification loss that measures the negative log-likelihood of the target class under predicted class probabilities and expects categorically encoded labels.

Categorical cross-entropy is a loss used for many-class classification. Cross-entropy measures the distance between ground-truth and predicted probability distributions. section 3.6.5 section 4.1.3

Choose the loss to match the task: categorical cross-entropy for many classes and binary cross-entropy for two classes. section 3.6.5

How Deep Learning with R, Third Edition covers it

How deep it goes
Defines cross-entropy as a distance between distributions and gives task-selection guidance, but no categorical-specific formula or implementation.
Examples
Contrasts many-class and two-class classification as loss-selection cases, without showing a categorical-cross-entropy code example.
What you can do after
Apply it as the loss for a many-class classification task.
How it connects
Links categorical cross-entropy to multiclass classification and contrasts it with binary cross-entropy for two-class classification.

Also explained in

Compare how 19 books explain cross entropy loss →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with R, Third Edition. The section links point to the parts of the book it draws on.