To predict a stock price, we will perform the following steps:
Order the dataset from the oldest to the newest date.
Take the first five stock prices as input and the sixth stock price as output.
Slide it across so that in the next data point the second to the sixth data points are input and the seventh data point is the output, and so on, till we reach the final data point.
Given that it is a continuous number that we are predicting, the loss function this time shall be the mean squared error value.
Additionally, we will also try out the scenario where we integrate the text data into the historic numeric data to predict the next day's stock price.