Skip to content

Commit

Permalink
add LSTNet example (apache#9512)
Browse files Browse the repository at this point in the history
* add LSTNet example

* adding apache licence header
  • Loading branch information
opringle authored and piiswrong committed Jan 31, 2018
1 parent 0e46477 commit a56f3db
Show file tree
Hide file tree
Showing 6 changed files with 1,079 additions and 0 deletions.
16 changes: 16 additions & 0 deletions example/multivariate_time_series/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Implementation

This tutorial shows how to implement LSTNet, a multivariate time series forecasting model submitted by Wei-Cheng Chang, Yiming Yang, Hanxiao Liu and Guokun Lai in their paper [Modeling Long- and Short-Term Temporal Patterns](https://arxiv.org/pdf/1703.07015.pdf) in March 2017. This model achieved state of the art performance on 3 of the 4 public datasets it was evaluated on.

## Running the code

1. Download and unpack the public electricity dataset used in the paper. This dataset comprises measurements of electricity consumption in kWh every hour from 2012 to 2014 for 321 different clients.

```s
$ wget https://github.com/laiguokun/multivariate-time-series-data/raw/master/electricity/electricity.txt.gz
$ gunzip electricity.txt.gz
```

2. preprocess data with `python preprocess.py`
3. set model hyperparameters in `/src/config.py`
4. `python train.py`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a56f3db

Please sign in to comment.