Huber loss: minor error in square and big error in linear
Calculates the segment losses and gradients to show the relationship between robustness and the target unit.
Learning objectives and first steps2 objectives . 1 first fix
Try to do it after reading
- Calculate part of loss and gradient
- Description of the relationship between robustness and the target unit
Suggested first
- Classification and probabilities projections
Why do square losses tend to be dominated by extreme debris
The gradient of the square loss increases with the residual linearity, and a small number of extreme errors may strongly influence the parameters. Absolute losses do not continue to grow in the form of marginal penalties for large errors, but do not remain smooth at zero points. Huber connects the two: small error with a smooth secondary segment, big error with a linear segment, allowing the function value to continue at the threshold with the first step.
Three outcomes of fixed thresholds
Defines the disability as the predicted reduction label, taking = 1. Loss of 0.5 hours from impairment of 0.125 and gradient 0.5; Loss of 1.5, gradient 1 at 2 hours; At the margin of 2 hours, the loss remains at 1.5, gradient-1. The marginal effect of the large margin was reduced by Huber in comparison to the loss of squares at the 2nd margin and the gradient. At the positive or negative threshold, the first gradient can be connected consecutively, and the second-step guides change so that they cannot be treated as a secondary function with the same curvature in the place. Some of the flat absolute losses of similar names were agreed on different scales and the formula should be checked rather than just the value equivalent based on the interface name.
Threshold with target unit
If the target is changed from a meta to a fraction, the same true error is multiplied by a hundred times, and the platinum corresponds to the unit. Otherwise, samples originally in the secondary zone could enter the linear zone in large numbers, and the issue of optimization has changed. Normalization targets also require an examination of the loss explanation at the time the unit is restored, rather than simply restoring the projected value.
Being steady doesn't mean ignoring the point
The extreme residue of large samples may be noise or may be the most important aspect of the business. Lowering their weights would change the optimal orientation and could not be described unconditionally as fairer or more accurate. If the real goal is total amount or tail loss, the corresponding indicators should be evaluated to determine whether sound treatment has been sacrificed to key populations.
Reconciliation achieved
The item loss can be printed on a sample-by-species basis before the average, summation or sample weighting can be checked. In multi-target returns, different export units need either their own thresholds or a clear scaling. After regularization, the gradient also contains parametric penalties, which cannot be compared with the full training gradient only. The overall measure of loss that has not been normalized will also change when it approaches zero, and the value cannot simply be said to be directly equivalent to an absolute loss. When comparing learning rates with regularization of different thresholds, the target scale should be retained to avoid misconstruing differences in the optimised band as solid gains.
Self-measurement and provocator
What are the losses and gradients of =1, and disability 2 respectively?
Loss 1.5, gradient 1; Linear segments limit marginal slopes, but losses continue to increase with errors.
Are the total amounts projected to be better with Huber?
Not necessarily. Reducing the impact of large residues may change aggregate and tail performance and require independent inspection against actual targets.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.