keras-io icon indicating copy to clipboard operation
keras-io copied to clipboard

using sliding windows or TimeseriesGenerator from Keras

Open mohammad69h94 opened this issue 2 years ago • 1 comments

Hi, Can you please guide me on how I can feed the data to the network using timeseries_dataset_from_array? In fact, I want to use the sliding windows technique and timeseries_dataset_from_array does it. I mean in the code of time-series classification using transformers. Thanks a lot.

mohammad69h94 avatar Oct 16 '23 15:10 mohammad69h94

Image

Take this as an example.

zhangpanzhan avatar May 20 '25 13:05 zhangpanzhan

Hi @mohammad69h94, please refer this documentation, I have created a small example that would create sliding windows using timeseries_dataset_from_array, please refer this attached gist.

dhantule avatar Oct 30 '25 09:10 dhantule

This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you.

github-actions[bot] avatar Nov 15 '25 02:11 github-actions[bot]