For more explanation about the code you can find the blog post here:
https://medium.com/@mrahimi_29846/stock-price-prediction-with-regression-models-365487c48809
In this repository we will show how to build regression models to predict the close price of your favorite stocks for the next 30 days.
We experimented with linear regression, support vector regressor and random forest regressor but the code can be easily extended to include other regression models too.
The result of the support vector regressor can be seen here:
Furthermore we compared the three different regression models based on the variance score and r2 score on their training and test dataset.
To quickly test the code without the hassle of installing libraries and compiling it on your local machine, visit https://stocknear.com. You can find everything we have discussed and more on my website, which offers a user-friendly interface to begin predicting stock prices for your favorite stocks instantly.