Giter VIP home page Giter VIP logo

hualiu01 / lstmrnnstockr Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 12.0 26.18 MB

(1) LSTM-RNN stock prices (historical closing precies of S&P500) prediction using keras with tensorflow. (2) Experiments APIs on the network's hyper-parameters are provided through './mmodel/experiment.py'. (3) a website is built using this prediction model as engine with Flask and MySQL.

Python 65.64% CSS 4.45% JavaScript 16.99% HTML 12.92%

lstmrnnstockr's Introduction

In this project, I build a LSTM-RNN to predict stock prices using keras with tensorflow. The training data comes from historical closing precies of S&P500. The accuracy measured by Root Mean Square Error (RMSE) is around 0.99. And I did experiments on the network's hyper-parameters such as LSTM cell hidden state size, truncated back propagation length and depth of the network. At last, I build a website using this prediction model as engine with Flask and python.

Dependencies:

python 2.7 pip 9.0.1 flask 0.12.1

tensorflow 0.12.1 keras1.2.1

Run:

Note: Please activate tensorflow virtual env first.

To runthe experiment on LSTM structures:

cd ./model

python experiment.py

To run the web app, first change back to the root

python app.py

Paper & vedio demo

lstmrnnstockr's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lstmrnnstockr's Issues

Stateful model

lstm.py create different types of model. But all these models are stateless, that means the cell state of LSTM gets reset after every batch of input. Is it taking advantage of the capability of LSTM to learn long-term dependencies?

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.