jaungiers / LSTM-Neural-Network-for-Time-Series-Prediction

LSTM built using Keras Python package to predict time series steps and sequences. Includes sin wave and stock market data
GNU Affero General Public License v3.0
4.85k stars 1.96k forks source link

Data format issues #94

Open zzz6666 opened 3 years ago

zzz6666 commented 3 years ago

image

I want to know why y = window[-1, [0]] image

The meaning of this code is to take only the first data of the last row of each window,The data I circled in the figure above but I think all elements in the last row of each window should be taken,The data I circled in the figure below image

Because the last element of each sequence should be predicted, not just the first so i think y should be equal to window[-1]
I don’t know if my idea is correct, I look forward to your reply