Course 4: Week 2 Assignment, error while splitting the objects

I am in currently in Sequences, Time series and Prediction course in coursera.
while doing the assignment, i stumbled upon a basic error while splitting the windowed dataset into training and testing
after shuffling the dataset , i m splitting the dataset in the following form
dataset = window: (window[:-1], window[-1]))
but thebach of features i m getting is of the shape (5, 0)
while the expected shape is of (5,1)
can anybody help me figure this out?

fixed the issue, it seems, i had to add window_size+1, while creating the window

1 Like