5.7.2.6.4. scipy.special.huber¶
-
scipy.special.
huber
(delta, r) = <ufunc 'huber'>¶ Huber loss function.
huber(δ,r)={∞δ<012r20≤δ,|r|≤δδ(|r|−12δ)otherwiseParameters: delta : ndarray
Input array, indicating the quadratic vs. linear loss changepoint.
r : ndarray
Input array, possibly representing residuals.
Returns: res : ndarray
The computed Huber loss function values.
Notes
This function is convex in r.
New in version 0.15.0.