Skip to content

Commit

Permalink
revert change to objective
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbader committed Nov 3, 2023
1 parent 2bd75e9 commit 3aab3b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions darts/models/forecasting/xgboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ def fit(
if xgb_200_or_above:
self.kwargs["quantile_alpha"] = quantile
else:
self.kwargs["objective"] = partial(
xgb_quantile_loss, quantile=quantile
)
objective = partial(xgb_quantile_loss, quantile=quantile)
self.kwargs["objective"] = objective
self.model = xgb.XGBRegressor(**self.kwargs)

super().fit(
Expand Down

0 comments on commit 3aab3b1

Please sign in to comment.