Loss Function vs Cost Function
The terms "loss function" and "cost function" are used interchangeably in most textbooks, tutorials, and framework documentation. That ambiguity hides a distinc…
~/blog/tutorials/deep-learning
The terms "loss function" and "cost function" are used interchangeably in most textbooks, tutorials, and framework documentation. That ambiguity hides a distinc…
Regression outputs a continuous number. The loss function for regression measures how far that number is from the true value — but how you measure "far" determi…
Regression loss measures distance — how far is the prediction from the true number. Classification loss measures information — how surprised are you by the true…
You have now seen five loss functions: MSE, MAE, Huber, BCE, CCE, Sparse CCE, Hinge, and Focal. The first question when starting a new supervised learning task…
MSE squares the error — a prediction that is 30,000 off on a house price gets 900,000,000 added to the loss. One extreme outlier can dominate the entire trainin…