Skip to content

Commit

Permalink
fix xgboost warning (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
pplonski committed Mar 4, 2024
1 parent d9a1f8a commit e38a8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion supervised/algorithms/xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def fit(
early_stopping_rounds=esr,
evals_result=evals_result,
verbose_eval=False,
feval=self.custom_eval_metric
custom_metric=self.custom_eval_metric
# callbacks=[time_constraint] # callback slows down by factor ~8
)

Expand Down
2 changes: 1 addition & 1 deletion supervised/tuner/optuna/xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def __call__(self, trial):
early_stopping_rounds=self.early_stopping_rounds,
callbacks=[pruning_callback],
verbose_eval=False,
feval=self.custom_eval_metric,
custom_metric=self.custom_eval_metric,
)
preds = bst.predict(
self.dvalidation, iteration_range=(0, bst.best_iteration)
Expand Down

0 comments on commit e38a8be

Please sign in to comment.