pytorch_forecasting.data.timeseries.
_find_end_indices
Identify end indices in series even if some values are missing.
diffs (np.ndarray) – array of differences to next time step. nans should be filled up with ones
max_lengths (np.ndarray) – maximum length of sequence by position.
min_length (int) – minimum length of sequence.
and end indices that are currently missing.
Tuple[np.ndarray, np.ndarray]