Coders Packet

Stock Market Prediction Using Python

By Varun Jain

Stock market analysis and prediction using mean squared error method using line graph using Python.

The stock market is analyzed and trained using Python language. In this project, we take stock of google and predict its stock. We first start by plotting it using a line graph and scale its data accordingly to fit it as if the dataset is too high it would be difficult in training. The dataset is split in x_train and y_train.To plot the data we used the matplotlib package from Python.
The model is trained using the mean squared method and is predicted using inverse transforms. In this model, we get 3.48 as a mean squared error. The predicted model is showcased using a line graph. We can change the name of the stock by updating the stock value as MICROSOFT etc.

Download Complete Code

Comments

No comments yet