L1 loss (Mean Absolute Error)
mlx_l1_loss.RdComputes the mean absolute error between predictions and targets.
Usage
mlx_l1_loss(predictions, targets, reduction = c("mean", "sum", "none"))mlx_l1_loss.RdComputes the mean absolute error between predictions and targets.
mlx_l1_loss(predictions, targets, reduction = c("mean", "sum", "none"))