Description Usage Arguments Details Value
This function computes for xgboost's obj
function the Loglikelihood Error loss (logloss) gradient and hessian per value provided preds
and dtrain
.
1 | loss_LL_xgb(preds, dtrain)
|
preds |
The |
dtrain |
The xgboost model. |
Loss Formula : - (y_true * log(y_pred) + (1 - y_true) * log(1 - y_pred))
Gradient Formula : (1 - y_true)/(1 - y_pred) - y_true/y_pred
Hessian Formula : (1 - y_true)/((1 - y_pred) * (1 - y_pred)) + y_true/(y_pred * y_pred)
The gradient and the hessian of the Loglikelihood Error per value in a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.