Learn R Programming

Laurae (version 0.0.0.9001)

loss_MAE_math: Mean Absolute Error (symbolic function)

Description

This function computes the Mean Absolute Error loss (MAE) per value provided x (preds - labels).

Usage

loss_MAE_math(x, y)

Arguments

x
The predictions.
y
The labels.

Value

The Squared Error per value.

Details

Supposing: \(x = preds - labels\) Loss Formula : \(abs(x)\) Gradient Formula : \(sign(x)\) Hessian Formula : \(0\)

Examples

Run this code
## Not run: ------------------------------------
# SymbolicLoss(fc = loss_MAE_math)
## ---------------------------------------------

Run the code above in your browser using DataLab