HuberLoss
Huber Loss (Smooth L1 Loss).
Huber loss is quadratic for small errors and linear for large errors, making it less sensitive to outliers than MSE while still being differentiable.
L(pred, target) = 0.5 * (pred - target)^2 if |pred - target| < delta = delta * (|pred - target| - 0.5 * delta) otherwise
Parameters
delta
The threshold at which to change from quadratic to linear loss. Default is 1.0.