From 51b287230c6e893f59ba718887bc003f2ee9f6c0 Mon Sep 17 00:00:00 2001 From: JavierEscobarOrtiz Date: Mon, 20 May 2024 14:58:51 +0200 Subject: [PATCH] fix_window_size_diff --- .../ForecasterAutoregMultiSeries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skforecast/ForecasterAutoregMultiSeries/ForecasterAutoregMultiSeries.py b/skforecast/ForecasterAutoregMultiSeries/ForecasterAutoregMultiSeries.py index 51123354d..a7a8b5b97 100644 --- a/skforecast/ForecasterAutoregMultiSeries/ForecasterAutoregMultiSeries.py +++ b/skforecast/ForecasterAutoregMultiSeries/ForecasterAutoregMultiSeries.py @@ -846,7 +846,7 @@ def _create_train_X_y( if series_to_store: last_window = { - k: v.iloc[-self.max_lag:].copy() + k: v.iloc[-self.window_size_diff:].copy() for k, v in series_dict.items() if k in series_to_store }