I am working with 2D arrays with the shape (1542, 2):
[[-0.83776179 -1. ]
[-0.83229744 -0.99845917]
[-0.81120124 -0.99691834]
...
[ 0.33190834 0.99691834]
[ 0.3312287 0.99845917]
[ 0.34686055 1. ]]
With this array, I need to group them so that for each entry, i have the 200 entries before, as I want to predict the next entrie using the 200 ones before, in this way:
[[[-0.83776179 -1. ]
[-0.83229744 -0.99845917]
[-0.81120124 -0.99691834]
...200 elements
[ 0.33190834 0.99691834]
[ 0.3312287 0.99845917]
[ 0.34686055 1. ]]
[[-0.83776179 -1. ]
[-0.83229744 -0.99845917]
[-0.81120124 -0.99691834]
... 200 elements
[ 0.33190834 0.99691834]
[ 0.3312287 0.99845917]
[ 0.34686055 1. ]]]
What would be the best way using numpy?