Skip to main content
Tweeted twitter.com/StackStats/status/1242421047653289984
edited tags
Link
gunes
  • 58.2k
  • 4
  • 50
  • 88
Source Link

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?