Skip to content

Commit

Permalink
fix(residuals): correct a function argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Droxef committed Jul 20, 2020
1 parent 0c04781 commit f2843c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darts/backtesting/backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def forecasting_residuals(model: ForecastingModel,
first_index = series.time_index()[model.min_train_series_length]

# compute fitted values
p = backtest_forecasting(series, model, first_index, fcast_horizon_n, True, verbose=verbose)
p = backtest_forecasting(series, model, first_index, fcast_horizon_n, trim_to_series=True, verbose=verbose)

# compute residuals
series_trimmed = series.slice_intersect(p)
Expand Down

0 comments on commit f2843c0

Please sign in to comment.