Giter Site home page Giter Site logo

anchen1011 / multivariate_time_series_forecasting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opringle/multivariate_time_series_forecasting

0.0 2.0 0.0 96.92 MB

A place to implement state of the art deep learning methods for temporal modelling using python and MXNet.

Python 100.00%

multivariate_time_series_forecasting's Introduction

LSTNet

  • This repo contains an MXNet implementation of this state of the art time series forecasting model.
  • You can find my blog post on the model here

Running the code

  1. Download & extract the training data:
    • $ mkdir data && cd data
    • $ wget https://github.com/laiguokun/multivariate-time-series-data/raw/master/electricity/electricity.txt.gz
    • $ gunzip electricity.txt.gz
  2. Train the model (~1.5 hours on Tesla K80 GPU with default hyperparams):
    • $ cd src && python lstnet.py --gpus=0

Results & Comparison

  • The model in the paper predicts with h = 3 on electricity dataset, achieving RSE = 0.0906, RAE = 0.0519 and CORR = 0.9195 on test dataset
  • This MXNet implementation achieves RSE = 0.0880, RAE = 0.0542 after 100 epochs on the validation dataset
  • Saved model checkpoint files can be found in models/

Hyperparameters

The default arguements in lstnet.py achieve equivolent performance to the published results. For other datasets, the following hyperparameters provide a good starting point:

  • q = {2^0, 2^1, ... , 2^9} (1 week is typical value)
  • Convolutional num filters = {50, 100, 200}
  • Convolutional kernel sizes = 6,12,18
  • Recurrent state size = {50, 100, 200}
  • Skip recurrent state size = {20, 50, 100}
  • Skip distance = 24 (tune this based on domain knowledge)
  • AR lambda = {0.1,1,10}
  • Adam optimizer LR = 0.001
  • Dropout after every layer = {0.1, 0.2}
  • Epochs = 100

multivariate_time_series_forecasting's People

Contributors

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