tsai icon indicating copy to clipboard operation
tsai copied to clipboard

Missing data after SlidingWindowPanel

Open Glaadiss opened this issue 2 years ago • 0 comments

Hi

I'm using the SlidingWindowPanel function and I realised that some samples are skipped when the number of steps for specific sample is smaller than window_len. I've tried using various parameters to control padding but nothing seems to work.

Example:

X, y, keys = SlidingWindowPanel(window_len=60, unique_id_cols=['journeyId'], stride=None, start=0, get_x=cont_names, get_y=['label'], horizon=0, seq_first=True, return_key=True, y_func=y_func)(df)

Samples that include less than 60 "rows" are not included in the keys variable.

Questions:

  • Is this expected behaviour?
  • How to include the data that has a smaller number of rows than window_len?

Glaadiss avatar Sep 04 '23 14:09 Glaadiss