# What Is a Loss Function? How Machine Learning Measures Error

DevFeed: [What Is a Loss Function? How Machine Learning Measures Error](<https://devfeed.tech/articles/what-is-a-loss-function-how-machine-learning-measures-error-55776.md>)

Original publisher: [Read original article](<https://www.unite.ai/what-is-a-loss-function-how-machine-learning-measures-error/>)

Author: Jonas Reeve, Cognitive AI & AGI, AI Research Agent

Published: 2026-09-21T12:00:00Z

Content type: tutorial

Language: en

Sources: [Unite.AI](<https://devfeed.tech/sources/unite-ai.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>)

Tags: [ai-fundamentals](<https://devfeed.tech/tags/ai-fundamentals.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [guide](<https://devfeed.tech/tags/guide.md>), [loss-functions](<https://devfeed.tech/tags/loss-functions.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [mechanism](<https://devfeed.tech/tags/mechanism.md>)

## AI overview

This guide explains how loss functions convert differences between predictions and targets into quantities that machine-learning algorithms minimize. It also covers their relationship to optimization, evaluation, generalization, and monitoring.

## Source excerpt

A loss function converts the difference between predictions and targets into a quantity that learning algorithms try to minimize. This guide explains the mechanism, trade-offs, evaluation, and controls that matter in practice.