Huber Loss in TensorFlow
Saved by @baristageek #python
Gets the mean squared error of (x - y) if the average of all elements in (x - y) is negative, or the sum of the absolute value of all elements in the tensor (x - y) otherwise. See Huber loss: https://en.wikipedia.org/wiki/Huber_loss
Comments