Skip to content

Commit

Permalink
fix: avoid empty step_idx list when n_steps==seq_len;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Sep 3, 2024
1 parent 16aa3e5 commit eac2b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygrinder/sequential_missing/seq_missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def seq_missing(
n_steps - max(step_idx) >= seq_len
), f"n_steps - max(step_idx) must be >= seq_len, but got {n_steps - max(step_idx)}"
else:
step_idx = list(range(n_steps - seq_len))
step_idx = list(range(n_steps - seq_len + 1))

if isinstance(X, np.ndarray):
corrupted_X = _seq_missing_numpy(
Expand Down

0 comments on commit eac2b26

Please sign in to comment.