[doc] Fix custom_metric_obj.rst [skip ci] (#10796) (#10815)

Added the square to the derivative in the hessian

Co-authored-by: Corentin Santos <corentin.santos@iphc.cnrs.fr>
This commit is contained in:
Jiaming Yuan 2024-09-10 05:11:43 +08:00 committed by GitHub
parent bba6aa74fb
commit 3ef8383d93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ If we compute the gradient of said objective function:
As well as the hessian (the second derivative of the objective): As well as the hessian (the second derivative of the objective):
.. math:: .. math::
h = \frac{\partial^2{objective}}{\partial{pred}} = \frac{ - \log(pred + 1) + \log(label + 1) + 1}{(pred + 1)^2} h = \frac{\partial^2{objective}}{\partial{pred}^2} = \frac{ - \log(pred + 1) + \log(label + 1) + 1}{(pred + 1)^2}
***************************** *****************************
Customized Objective Function Customized Objective Function