Learn R Programming

Laurae (version 0.0.0.9001)

loss_MCE_hess: Mean Cubic Error (hessian function)

Description

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

Usage

loss_MCE_hess(y_pred, y_true)

Arguments

y_pred
The predictions.
y_true
The labels.

Value

The hessian of 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)\)