From 3ef8383d93c84c101ad77a83a6faaa9f051e5455 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Tue, 10 Sep 2024 05:11:43 +0800 Subject: [PATCH] [doc] Fix custom_metric_obj.rst [skip ci] (#10796) (#10815) Added the square to the derivative in the hessian Co-authored-by: Corentin Santos --- doc/tutorials/custom_metric_obj.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorials/custom_metric_obj.rst b/doc/tutorials/custom_metric_obj.rst index 51491e85c..08bf99b32 100644 --- a/doc/tutorials/custom_metric_obj.rst +++ b/doc/tutorials/custom_metric_obj.rst @@ -52,7 +52,7 @@ If we compute the gradient of said objective function: As well as the hessian (the second derivative of the objective): .. 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