Learn R Programming

Laurae (version 0.0.0.9001)

loss_MSE_math: Mean Squared Error (symbolic function)

Description

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

Usage

loss_MSE_math(x, y)

Arguments

x
The predictions.
y
The labels.

Value

The Squared Error per value.

Details

Supposing: \(x = preds - labels\) Loss Formula : \(x^2\) Gradient Formula : \(2 * x\) Hessian Formula : \(2\)

Examples

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

Run the code above in your browser using DataLab