loss_MSE_grad: Mean Squared Error (gradient function)
Description
This function computes the Mean Squared Error loss (MSE) gradient per value provided preds
and labels
.Usage
loss_MSE_grad(y_pred, y_true)
Value
The gradient of the Squared Error per value.Details
Supposing: \(x = preds - labels\) Loss Formula : \(x^2\) Gradient Formula : \(2 * x\) Hessian Formula : \(2\)