Description Usage Arguments Details Value
This function computes the Laurae's Kullback-Leibler Error loss hessian per value provided preds
and labels
values.
1 | loss_LKL_hess(y_pred, y_true)
|
y_pred |
The |
y_true |
The |
This loss function is strictly positive, therefore defined in \]0, +Inf\[
. It penalizes lower values more heavily, and as such is a good fit for typical problems requiring fine tuning when undercommitting on the predictions. Compared to Laurae's Poisson loss function, Laurae's Kullback-Leibler loss has much higher loss. This loss function is experimental.
Loss Formula : (y_true - y_pred) * log(y_true / y_pred)
Gradient Formula : -((y_true - y_pred)/y_pred + log(y_true) - log(y_pred))
Hessian Formula : ((y_true - y_pred)/y_pred + 2)/y_pred
The hessian of the Laurae's Kullback-Leibler Error per value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.