Coder Social home page Coder Social logo

ahmadmaududiazmi / stock-prediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kokohi28/stock-prediction

0.0 0.0 0.0 453 KB

Implementation LSTM algorithm for stock prediction in python. Use sklearn, keras, and tensorflow.

License: MIT License

Python 100.00%

stock-prediction's Introduction

Stock Prediction using Long short-term memory (LSTM)

Implementation of LSTM to predict stock price.

The implementation use reference from this article, https://medium.com/@randerson112358/stock-price-prediction-using-python-machine-learning-e82a039ac2bb

The stock data from https://finance.yahoo.com/

Note

This project using data from yahoo finance, and implemented to predict Close Price stock from :

  • Apple (AAPL)
  • Dow Jones Industrial Average (^DJI)
  • Hang Seng Index (^HSI)
  • S&P 500 (^GSPC)

Preview

S&P 500 stock prediction S&P 500 stock prediction

Requirements

  • Python 3.7

Requirements Library

  • numpy -> $ pip install numpy

  • pandas -> $ pip install pandas

  • pandas_datareader -> $ pip install pandas-datareader

  • sklearn -> $ pip install scikit-learn

  • keras -> $ pip install Keras

  • tensorflow -> $ pip install tensorflow

  • matplotlib -> $ pip install matplotlib

File Structure

py files

  • const.py -> Constant for all python project files

  • menu.py -> Handle terminal/command-line menu

  • main.py -> Main program

CSV files

  • AAPL.csv -> Apple stock data (if deleted, will grab from yahoo finance).

  • DJI.csv -> Dow Jones Industrial Average stock data (if deleted, will grab from yahoo finance).

  • HSI.csv -> Hang Seng Index stock data (if deleted, will grab from yahoo finance).

  • GSPC.csv -> S&P 500 stock data (if deleted, will grab from yahoo finance).

How to Run

$ python3 main.py

Students

Informatic Engineering of State University of Surabaya (UNESA)

  • Koko Himawan Permadi (19051204111)
  • Malik Dwi Yoni Fordana (17051204024)
  • Roy Belmiro Virgiant (17051204016)

stock-prediction's People

Contributors

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