From 2b88099c7406b014b2c6babd71cdf2e3eaa9cb7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20Batuhan=20Balo=C4=9Flu?= Date: Fri, 6 Jan 2023 00:08:25 +0300 Subject: [PATCH] [doc] Update custom_metric_obj.rst (#8626) --- 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 27f751ccd..8a2fcb718 100644 --- a/doc/tutorials/custom_metric_obj.rst +++ b/doc/tutorials/custom_metric_obj.rst @@ -292,6 +292,7 @@ access ``DMatrix``: def softprob_obj(labels: np.ndarray, predt: np.ndarray) -> Tuple[np.ndarray, np.ndarray]: rows = labels.shape[0] + classes = predt.shape[1] grad = np.zeros((rows, classes), dtype=float) hess = np.zeros((rows, classes), dtype=float) eps = 1e-6