jaxopt.loss.huber_loss

jaxopt.loss.huber_loss(target, pred, delta=1.0)[source]

Huber loss.

Parameters
  • target (float) – ground truth

  • pred (float) – predictions

  • delta (float) – radius of quadratic behavior

Return type

float

Returns

loss value

References

https://en.wikipedia.org/wiki/Huber_loss