Based on Sentdex linear regression tutorials series.
Download the working dataset with:
python download_dataset.py
Modifications:
- We changed the we train on all the rows except last 60
- we use the next 30 rows to make predictions of the last 30 rows' stock prices to be able to visually compare
- we use the last 30 rows to make predictions 30 days into the future
- changes to simplify the datetime manipulations
The red line show actual stock data, the blue line shows the prediction of the model that carries out 30 days into the future (at the time).