R/loss_functions.R
loss_mae.Rd
Mean absolute error loss function
loss_mae(y_hat, y, ...)
A numeric vector representing predictions
A numeric vector representing observations
Additional arguments passed from other functions; ignored
A scalar value