Giter Club home page Giter Club logo

state-frequency-memory-stock-prediction's Introduction

State Frequency Memory recurrent network for stock price prediction

Author: Liheng Zhang, Date: 08/03/2017

This is the project for the following paper:

Liheng Zhang, Charu Aggarwal, Guo-Jun Qi, Stock Price Prediction via Discovering Multi-Frequency Trading Patterns,
in Proceedings of ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD 2017), Halifax, Nova Scotia,
Canada, August 13-17, 2017.

Questions about the source codes can be directed to Liheng Zhang at [email protected].

For more applications with SFM, please refer to:

Hao Hu, Guo-Jun Qi. State-Frequency Memory Recurrent Neural Networks, in Proceedings of International Conference
on Machine Learning (ICML 2017), Sydney, Australia, August 6-11, 2017.

Requirements

  • Python == 2.7
  • Keras == 1.0.1
  • Theano == 0.9

Prepare the data

cd dataset; python build_data.py

Test with pretrained model

cd test
python test.py --step=1

The model for n-step prediction is specified with --step. Models for 1-step, 3-step and 5-step prediction are provided.

To visualize the predicted results:

python test --step=1 --visualization=true

Training

cd train
python train.py --step=3 --hidden_dim=50 --freq_dim=10 --niter=4000 --learning_rate=0.01

Note

The codes are expired for Keras >= 2.0.0. Codes for the latest version of Keras will be released.

state-frequency-memory-stock-prediction's People

Contributors

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