Skip to main content
2 of 2
edited tags
gunes
  • 58.2k
  • 4
  • 50
  • 88

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?