Giter Site home page Giter Site logo

mobidian / stock-prediction-using-lstms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anishgollakota/stock-prediction-using-lstms

0.0 1.0 0.0 163 KB

Built a stock prediction program in which the user can pick any company available on Yahoo! Finances and be able to predict the closing price of the stock based on the set date with high accuracy.

Python 100.00%

stock-prediction-using-lstms's Introduction

Stock-Prediction-Using-LSTMs

Built a stock prediction program in which the user can pick any company available on Yahoo! Finances and be able to predict the closing price of the stock with a very high accuracy.

Preprocessing

  • Seperation of the data over the last 60 days to use as the testing set and previous values used in the training set.
  • Lets user choose the company, start date, and end date for the analytics that they want to predict on

The Neural Network

The Neural Network in use for this model is an Sequential LSTM model.

The model is comprised of:

  • Two LSTM Layers
    • Each consisting of 50 Neurons
    • Do not return sequences on the last layer because we want output predicting the next day's value on the dataset.
  • Two Dense Layers
    • Conisting of 25 Neurons and 1 Neuron
  • Compilation
    • Optimizer: Adam
    • Loss: MSE (Mean Squared Error)

Example: Predicting NVIDIA stock prices with high accuracy

As you can see, the NVIDIA stock price at the end of the cycle starts to become a little unpredictable.

After applying our model and predictions:

The close correlation between the validations and predictions indicate a reliable model for making business decisions.

stock-prediction-using-lstms's People

Contributors

anishgollakota avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.