Skip to content

Commit

Permalink
fixed bug in historical forecasts not training model for first time i…
Browse files Browse the repository at this point in the history
…f retrain is False (#1005)
  • Loading branch information
dennisbader committed Jun 13, 2022
1 parent 2292b82 commit abf12da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darts/models/forecasting/forecasting_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def historical_forecasts(

# train_cov = covariates.drop_after(pred_time) if covariates else None

if retrain:
if retrain or not self._fit_called:
self._fit_wrapper(
series=train,
past_covariates=past_covariates,
Expand Down

0 comments on commit abf12da

Please sign in to comment.