Update custom_metric_obj.rst (#6367)
This commit is contained in:
parent
e65e3cf36e
commit
9564886d9f
@ -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.'''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user