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