HUBER
HUBER()
Content copied to clipboard
Computes the Huber loss between y_true
and y_pred
.
For each value x in error = y_true - y_pred
:
loss = 0.5 * x^2 if |x| <= d
loss = 0.5 * d^2 + d * (|x| - d) if |x| d
Computes the Huber loss between y_true
and y_pred
.
For each value x in error = y_true - y_pred
:
loss = 0.5 * x^2 if |x| <= d
loss = 0.5 * d^2 + d * (|x| - d) if |x| d