By Team Edtoolkits · AI learning
Use absolute and squared error to see why a large miss can dominate a training objective.
Use the guide alongside the working tool.
Open Loss: Measuring Mistakes →Explore the lesson
Watch the error bars shrink as the line improves.
Move the line yourself and watch the loss meter.
Flip the memory card and answer the quick check.
A comparison to try
For a hand-check, consider y equal to 2x through points 1,2; 2,4; 3,6. Raising the intercept to 3 gives mean absolute error 3 and mean squared error 9. In the lesson, compare these objectives on its fixed dataset.
Read the result
Squaring amplifies larger misses relative to smaller ones, while absolute loss grows linearly with error magnitude. The preferred fitted line can therefore depend on which errors the task considers costly.
A mistake to avoid
Loss values from different objectives have different units and scales. Do not compare 3 and 9 as though one run were automatically worse; compare models under the same objective and inspect unusual observations.
Teaching model and privacy
The data is ten invented dots and the model is a straight line, so you can see every error. Real losses work on millions of examples. Everything runs in your browser.
Ready to apply this workflow?
Try Loss: Measuring Mistakes →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.