From 9564886d9fa3cb06756b1cb3b0a126d523ba3051 Mon Sep 17 00:00:00 2001 From: Jean Lescut-Muller Date: Tue, 10 Nov 2020 15:29:22 +0100 Subject: [PATCH] Update custom_metric_obj.rst (#6367) --- doc/tutorials/custom_metric_obj.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/tutorials/custom_metric_obj.rst b/doc/tutorials/custom_metric_obj.rst index cf81019ad..5633ae20a 100644 --- a/doc/tutorials/custom_metric_obj.rst +++ b/doc/tutorials/custom_metric_obj.rst @@ -45,6 +45,7 @@ namely prediction and labels. For implementing ``SLE``, we define: import numpy as np import xgboost as xgb + from typing import Tuple def gradient(predt: np.ndarray, dtrain: xgb.DMatrix) -> np.ndarray: '''Compute the gradient squared log error.'''