Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
madtoinou committed Dec 19, 2024
1 parent 67fd550 commit d615552
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions darts/utils/data/tabularization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,7 @@ def _create_lagged_data_by_moving_window(
# after `first_window_end_idx`:
vals = series_i.all_values(copy=False)[
first_window_start_idx : first_window_end_idx
+ num_samples * stride
- 1,
+ (num_samples - 1) * stride,
:,
:,
]
Expand Down

0 comments on commit d615552

Please sign in to comment.