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