Deep Learning, Machine Learning, Artificial Intelligence, Loss Function, Neural Networks.
a slope of delta. In practice, delta is usually set to a value that balances the MSE and MAE loss, such as 1.0. Implementation in Numpy import numpy as np def huber_loss(y_pred, y_true, delta=1.0): error = y_pred - y_true abs_error = np.abs(error) quadratic = np.minimum(abs_error, delta) linear =