Skip to content

wutonytt/Stock-Price-Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stock Price Prediction

How to Run

python3 stock_price_prediction.py

Then type in the ticker symbol (e.g. AAPL) you want to predict.

Methods

We use Yahoo Finance API to fetch stock prices.

Model

LSTM (Long Short Term Memory)

We use stock prices of past 60 days to predict the stock price one day ahead, and train the model with 25 epochs.

Result

The following image shows the difference between the actual stock prices and the predicted stock prices for validation data, and the prediction of tomorrow stock price is shown at the end.

image

Prediction: 134.3729

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published