Machine Learning Loss Functions
Learn how machine learning models measure their own mistakes. Master the essential formulae, worked calculations, and behavior of regression and classification loss functions for exams and coursework.
Like Duolingo, but for Machine Learning Loss Functions. Tomo turns the whole topic into a game you play five minutes a day, until it actually sticks.
22 levels across 3 sections, about 44 minutes end to end, roughly 9 days at five minutes a day. It moves through Scoring Numeric Predictions, Scoring Probabilities and Categories, and Optimization and Applied Problem Solving. It starts from scratch.
Free forever · No credit card · iPhone & Android

Key ideas in Machine Learning Loss Functions
- A loss function evaluates model predictions against actual values and produces a single summary number
- Loss is non-negative, where zero indicates perfect predictions and larger values reflect greater error
- Machine learning models rely on a single numeric loss value rather than individual error lists to steer improvements
- A residual is the raw difference between the actual target value and what the model predicted
- Raw residuals can be positive or negative, so adding them directly lets overestimates and underestimates cancel each other out
- Taking the absolute value ensures every miss counts as a positive penalty toward overall error
- Mean Absolute Error calculates the average magnitude of prediction errors across all samples
- Unlike squared error metrics, MAE preserves the target variable's original physical unit of measurement (such as minutes, dollars, or kilograms)
- An MAE score translates directly to 'on average, predictions are off by this many units'
- MAE applies a strictly linear penalty to model errors
- Doubling the size of an individual prediction miss exactly doubles its contribution to the total MAE score
- MAE does not disproportionately punish large outlier errors the way squared error does
- Subtract predicted values from actual targets to find the raw difference for each sample
- Take the absolute value of each difference to remove signs so errors don't cancel
- Sum all positive differences together and divide by the total number of samples to find the mean
- Squaring an error means doubling a mistake multiplies its penalty by four
You've tried the other tabs
Thirty open tabs. Four facts you actually kept.
You watched. You nodded. By Sunday it was gone.
One answer, then back to scrolling.
Eight weeks. You meant to finish. You didn't.
Tomo gives Machine Learning Loss Functions the Duolingo treatment: levels, streaks, and quick quizzes that test what you just learned. That game loop is what the tabs above never had, so it's the one you actually finish.
Here's what playing it feels like
A real question from this course. Take your best guess.
If your model gets a loss score of zero, what does that tell you about its predictions?
Get it right to open this lesson and 21 more in the app.
How to learn Machine Learning Loss Functions, step by step
Go in order. 22 short levels across 3 sections, about 44 minutes in all, five minutes a day.
- 1
Scoring Numeric Predictions
- Measuring Residuals with Mean Absolute Error
- Squaring Residuals with MSE and RMSE
- Balancing Outlier Robustness with Huber Loss
- 2
Scoring Probabilities and Categories
- Binary Cross-Entropy and Log Loss
- Categorical Cross-Entropy for Multiple Classes
- Margin Separation and Hinge Loss
- 3
Optimization and Applied Problem Solving
- Loss Mechanics, Regularization, and Exam Selection
3 sections · 7 units · 22 levels. Built to play, not to enroll.
Questions about Machine Learning Loss Functions
How do I learn Machine Learning Loss Functions?
Go in order: start with Scoring Numeric Predictions, then Scoring Probabilities and Categories, then Optimization and Applied Problem Solving. On Tomo that's 22 short levels, about 44 minutes in all, played five minutes a day. Start free and play the first level in under a minute.
Is there a Duolingo-style app for Machine Learning Loss Functions?
Yes. Tomo works like Duolingo: short daily lessons, streaks and quick quizzes. Machine Learning Loss Functions is one of its free courses, and you can type any other topic to get a course of your own.
Is the Machine Learning Loss Functions course free?
Yes. Machine Learning Loss Functions is playable on Tomo's free plan, which doesn't expire. No credit card, no waitlist. Download the app and start your first lesson.
How long does it take to learn Machine Learning Loss Functions?
22 levels across 3 sections, about 44 minutes of play in total. It's built for five minutes a day, so you finish it a little at a time instead of all at once.
Do I need any background to start Machine Learning Loss Functions?
No. It's pitched at a beginner level, so it starts where you are and builds up. If you can tap a phone, you can start.
Tomo is in ChatGPT
Tomo is also a ChatGPT plugin: the same playable courses, built and played inside your chat.
Add Tomo to ChatGPT- What to ask
- “Make me a Tomo course on black holes.” “Turn this chat into a Tomo course.”
- What you get
- Quick questions with instant feedback, hearts and stars, ready to play in about a minute.
- Where it goes
- No sign-up to start. Connect your Tomo account and your streak carries on in the app.
You pick the voice
Machine Learning Loss Functions is taught in the Bestie style: your friend who just gets it. Want a different feel? In the app you can spin up the same topic in any of Tomo's teaching styles. Same facts, totally different vibe.
More Technology on Tomo
Building with Agentic AI
Move beyond simple chat and learn how to build AI systems that can use tools, plan complex tasks, and work autonomously to solve real-world problems.
Robots and Digital Companions
Bridge the gap between code and the physical world by building intelligent machines and responsive digital friends. Learn to program sensors, movement, and personality from the ground up.
JavaScript Context and Object-Oriented Patterns
Master the most misunderstood keyword in JavaScript. Learn to control execution context, architect robust class hierarchies, and navigate the nuances of prototype-based inheritance.
Tape Measure Mechanics and Layout
Move beyond rough cuts by unlocking the full mechanical and mathematical capabilities of the tape measure. Learn to eliminate zero-point errors, utilize hidden framing marks, and execute high-precision layout geometry.
Blow Moulding Process and Tooling
Step beyond basic plastics manufacturing into the operational mechanics of blow moulding. Master parison control, structural defect diagnosis, tooling geometry, and cycle optimization to produce high-tolerance hollow parts.
Data Structures and Algorithms
Understand how computers organize information and solve tough problems with lightning speed. Learn through intuitive real-world analogies, step-by-step logic, and practical trade-offs.
Start Machine Learning Loss Functions today.
Download Tomo, search Machine Learning Loss Functions, and play your first lesson in under a minute.