The average loss per example when L1 loss is used. Calculate MAE as follows:1
- Calculate the L1 loss for a batch.
- Divide the L1 loss by the number of examples in the batch.
where:
- is the number of examples.
- is the actual value of the label.
- is the value that the model predicts for .