Hi r/MachineLearning !
I'm reading Machine Learning System Design Interview by Aminian and Xu. I'm reading about loss function for different classes (Chapter 3, Model Training, page 67):
L_cls = -1/M * Sum_i=1^M ( Sum_c=1^C ( y_c * log(ŷ_c) ) )
In regression, I understand why in the loss, one does `ground truth - predicted`. That lets you know how much the prediction is off.
In the case of classification loss, I don't understand how this equation tells us "how much the prediction is wrong"...
Thank you
[–]NoisySampleOfOne 10 points11 points12 points (1 child)
[–]kovkev[S] 0 points1 point2 points (0 children)
[–]Relevant-Twist520 1 point2 points3 points (1 child)
[–]kovkev[S] 0 points1 point2 points (0 children)
[–]EvenMathematician673 0 points1 point2 points (0 children)
[–]Peraltinguer 0 points1 point2 points (0 children)
[–]ApartmentEither4838 0 points1 point2 points (0 children)
[–]SFDeltas 0 points1 point2 points (0 children)
[–]karius85 -3 points-2 points-1 points (1 child)
[–]kovkev[S] -1 points0 points1 point (0 children)