Description Usage Arguments Details Value
This function computes for xgboost's obj
function the Mean Squared Error loss (MSE) gradient and hessian per value provided preds
and dtrain
.
1 | loss_MSE_xgb(preds, dtrain)
|
preds |
The |
dtrain |
The xgboost model. |
Supposing: x = preds - labels
Loss Formula : x^2
Gradient Formula : 2 * x
Hessian Formula : 2
The gradient and the hessian of the Squared Error per value in a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.