Coder Social home page Coder Social logo

samarpatel / stock-price-prediction-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryan-kp-miller/stock-price-prediction-app

0.0 1.0 0.0 1.15 MB

Web app to display stock prices and predict today's closing price

Python 93.90% CSS 6.10%

stock-price-prediction-app's Introduction

Stock Price Prediction App

This app is designed to display the stock prices of the last 5 years for a few different technology companies. It also uses machine learning to predict today's closing stock price for each of the companies.

screenshot

Getting Started

Prerequisites

You need to have Python installed on your computer and be able to run python scripts through your terminal.

python example_script.py

Installing

After cloning the repository, navigate to the folder, create and activate a virtual environment, and install the required packages in the requirements.txt file.

For Windows machines:

cd path/to/repo/folder
python -m venv env
cd env/scripts
activate
cd ../..
python -m pip install -r requirements.txt

Running the App

Before you can run the web app, you need to first train the machine learning models (should take less than a minute). If you do not train the models first, the dash_app.py script will error out. Running this script will train a machine learning model for each of the companies and save the model and StandardScaler object into a models folder in the current working directory.

python train_models.py

After training the models, you need to run the dash_app.py script and navigate to the url shown in the terminal.

python dash_app.py

Built With

  • Plotly - The framework used to build the chart
  • Dash - The framework used to build the web app
  • Scikit-Learn - The framework used to building the machine learning models
  • yfinance - The API used to pull the stock price data from Yahoo! Finance

Author

stock-price-prediction-app's People

Contributors

ryan-kp-miller avatar ryankmiller avatar

Watchers

 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.