How to Split Python sequence (time series/array) into subsequences of size W and give W+1-th element as the label in a separate array?

后端 未结 0 1973
萌比男神i
萌比男神i 2020-11-27 03:31

Given a 1-D Python array, I need to split it into subsequences of size W (window size) and also to retrieve (W+1)-th element as the label of the corresponding subsequence.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题