We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a1f8a commit e38a8beCopy full SHA for e38a8be
supervised/algorithms/xgboost.py
@@ -201,7 +201,7 @@ def fit(
201
early_stopping_rounds=esr,
202
evals_result=evals_result,
203
verbose_eval=False,
204
- feval=self.custom_eval_metric
+ custom_metric=self.custom_eval_metric
205
# callbacks=[time_constraint] # callback slows down by factor ~8
206
)
207
supervised/tuner/optuna/xgboost.py
@@ -112,7 +112,7 @@ def __call__(self, trial):
112
early_stopping_rounds=self.early_stopping_rounds,
113
callbacks=[pruning_callback],
114
115
- feval=self.custom_eval_metric,
+ custom_metric=self.custom_eval_metric,
116
117
preds = bst.predict(
118
self.dvalidation, iteration_range=(0, bst.best_iteration)
0 commit comments