Create a loss function according to Huber’s method.
loss = s**2 * rho(f**2 / s**2) where rho(z) = z if z <= 1 else 2*z**0.5 - 1. s is the scaling factor.
scaling_factor (f64) – Scaling factor for Huber loss function.
Loss