Learn R Programming

Laurae (version 0.0.0.9001)

loss_MCE_math: Mean Cubic Error (math function)

Description

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

Usage

loss_MCE_math(x, y)

Arguments

x
The predictions.
y
The labels.

Value

The Cubic Error per value.

Details

Supposing: \(x = preds - labels\) Loss Formula : \(abs(x^3)\) Gradient Formula : \(3 * (x * abs(x))\) Hessian Formula : \((6 * x * x) / abs(x)\)

Examples

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

Run the code above in your browser using DataLab