I’ve get trouble for understand the LSTM input in keras. How I can transform a very simple serie 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 in a input matrix for it can predict next number?
I’m found that diagram
And I read some tutorials that they say matrix shape it’s like
[[0 1 2 3 4]
[1 2 3 4 5]
[2 3 4 5 6]
[3 4 5 6 7]
[4 5 6 7 8]]
I’ve made it with
list1 = []
for i in range(0, 10):
list1.append(i)
list2 = []
list3 = []
for i in range(0, len(list1) - 5):
list2.append(list1[i:i + 5])
list2 = np.array(list2)
But what does rows and columns represent respect that diagram?
