Data Science, Loss Function, Machine Learning, Neural Networks, TensorFlow.
y_pred): return tf.abs(y_true - y_pred) It also has some disadvantages; as the average distance approaches 0, gradient descent optimization will not work, as the function's derivative at 0 is undefined (which will result in an error, as it is impossible to divide by 0). Because of this, a loss