AIExplainer
Machine Learning Mathematics Intermediate 2 min read

What is loss?

A measure of how far a model's predictions are from the actual correct answers

In artificial intelligence, loss refers to the difference between what a model predicts and the actual true outcome. The goal of training a model is to minimize this difference, or loss, so that the model can make more accurate predictions.

Think of loss like a map that is slightly off from the real terrain. The more the map deviates from reality, the higher the loss. As you correct the map to better match the terrain, the loss decreases.

Imagine a self-driving car that predicts the distance to a stop sign. If the car's prediction is 10 meters off from the actual distance, the loss would be high. As the model is trained and improved, the loss decreases, allowing the car to make more accurate predictions and stop safely.

Loss is used to evaluate and improve the performance of machine learning models. By calculating the loss, developers can adjust the model's parameters to reduce the difference between predictions and actual outcomes.

A common misconception is that a model with zero loss is perfect. However, this is not always the case, as a model can have zero loss on the training data but still perform poorly on new, unseen data.

The concept of loss has been around since the early days of machine learning, with different types of loss functions being developed over time to suit various applications and models.

error cost function objective function

Three products for different needs — explore what’s relevant to you.