In the previous sections, we learned about performing audio, text, and structured data analysis using neural networks. In this section, we will learn about performing a time-series analysis using a case study of predicting a stock price.
Stock price prediction
Getting ready
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...