Our aim is to use the data in this dataset to predict the Amazon stock price on the data available in the .csv file. We need input and output to train and test our network.
It is clear that the input is represented by the data that's present in the dataset. Therefore, we must construct our output; we will do so by supposing we want to predict the Amazon stock price at time t + 1 with respect to the value stored at time t. Therefore, we will have the following:
In Chapter 6, Movie Reviews Sentiment Analysis Using Recurrent Neural Networks, we said that a recurrent network has memory, and this is maintained by fixing the so-called ...