Giter Club home page Giter Club logo

stock-trend-prediction's Introduction

Stock-Trend-Prediction

Deep learning for predicting stock market prices and trends has become even more popular than before. I have used yahoo finance to collect the data and LSTM to build the stock trend model. I have streamlit to build web UI.

Python Modules used in this project

  • numpy
  • pandas
  • matplotlib
  • pandas_datareader
  • scikit-learn
  • tensorflow
  • datetime
  • streamlit

Steps to train the Model

  • fetch the data from start date to end date.
  • choose the target variable (High or Low or Open or Close)
  • create dataframe with input and variable.
  • input is previous 10 days or 5 days stock price based on user choice.
  • output is next day stock price.
  • split the data into training and testing set.
  • Scale the data input data.
  • Build the LSTM model using keras module of tensorflow.
  • Train the model using training data set.
  • Save the model.

Step for Prediction

  • Take user input (previous 10 days or 5 days stock price data).
  • Scale the data.
  • Load Saved model.
  • Predict the Ouput

stock-trend-prediction's People

Contributors

prakashjha1 avatar

Stargazers

 avatar

Watchers

 avatar  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.