Skip to main content
1 of 2

Negative Log Likelihood cost

For multiclass classification, does the negative log likelihood loss function only take the loss for the classification group? i.e

$$ C(\theta) \equiv \sum{}{}y_ilog(\hat{y}_i) $$

Doesn't $y_i$ just go to zero for all groups except the actual group a given training sample belongs to?