Absolute-error loss
MethodAbsolute-error loss penalizes residual magnitudes, yielding mean absolute error when its elements are averaged.
Read
Docs
- PyTorch: L1Loss (opens in a new tab)PyTorch project
About this resource
Study Absolute-error loss at formula, shape, parameters and reduction notes.
Where to read: Formula, shape, parameters and reduction notes
Checked 2026-10-08
Authority for this purpose: The official API defines formulas, argument conventions, tensor shapes and reduction behavior for this implementation.
Destination inspection: Bounded GET; public DNS/IP pinned; redirect-by-redirect validation; destination text inspection required; reviewed destination title, provenance and concept-specific subject
Useful destination; no explanatory claim is asserted from this link.
- PyTorch 2.14 implementation contract; equations, shape and reduction conventions are version-specific.
Reviewed authoritative resource
Where to read: Formula, shape, parameters and reduction notes
A first-party destination supports its documented scope; it does not establish independent performance validation or historical priority.
Related concepts
Broader
- Regression loss familyKnowledge area
Related
- Mean absolute errorMetric
- Quantile lossMethod
Books to go deeper
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow
Aurélien Géron · 3rd edition
Build and evaluate predictive models and practical preprocessing pipelines.
View on Amazon (affiliate link) ↗Probabilistic Machine Learning: An Introduction
Kevin P. Murphy · 2022 edition
Probability, inference and predictive modeling with uncertainty.
View on Amazon (affiliate link) ↗As an Amazon Associate I earn from qualifying purchases.
Loading discussion…
