loss_MAE_grad: Mean Absolute Error (gradient function)
Description
This function computes the Mean Absolute Error loss (MAE) gradient per value provided preds
and labels
.Usage
loss_MAE_grad(y_pred, y_true)
Value
The gradient of the Absolute Error per value.Details
Supposing: \(x = preds - labels\) Loss Formula : \(abs(x)\) Gradient Formula : \(sign(x)\) Hessian Formula : \(0\)