Skip to content

Recognizing Dominant Patterns for Long-term Time Series Forecasting

Notifications You must be signed in to change notification settings

Hydra-gee/TSAllInOne

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recognizing Dominant Patterns for Long-term Time Series Forecasting

Datasets

This repository only contains the code of PRNet. Seven datasets are available here, including Electricity, ETT, Exchange, QPS, Solar, Traffic and Weather. They should be firstly unzipped and moved into the dataset folder.

Dataset Lists:

  • Electricity
    • LD2011_2014.csv
    • LD2011_2014_h.csv
  • ETT
    • ETTh.csv
    • ETTm.csv
  • Exchange
    • exchange_rate.csv
  • QPS
    • HQPS.csv
    • MQPS.csv
  • Solar
    • solar_Alabama.csv
    • solar_Alabama_h.csv
  • Traffic
    • PeMS.csv
  • Weather
    • mpi_roof.csv
    • mpi_roof_h.csv

Run

You can run main.py to reproduce the experiment. Below is an example of running the Traffic dataset with pred_len = 24.

python3 main.py -cuda_id 0 -dataset Traffic -pred_len 24

There are seven dataset names:

Electricity ETT Exchange QPS Solar Traffic Weather

and their hyperparameters are listed in files/configs.json.

The data_loader loads the datasets, model contains the code of PRNet, and files/networks saves the cases trained by ourselves. Below is the experiment result.

We have also unified the sampling interval of datasets except for Exchange to 1 hour for better comparison. You can set the parameter interval to 'H' to evaluate these unified datasets.

Visualization

There is also a visualize function, which is used for visualizing the forecasting result. The package files/figures saves eight forecasting results, you can also run the trained models by yourself.

Forecasting Accuracy

Dataset L L 2L 3.5L 7.5L
MSEMAE MSEMAE MSEMAE MSEMAE
Electricity96 0.13330.2263 0.15720.2453 0.16040.2453 0.16380.2513
ETT96 0.20520.2988 0.24370.3291 0.28130.3571 0.33660.3987
Exchange30 0.02040.0961 0.03710.1326 0.06300.1765 0.13570.2635
QPS60 0.02790.0928 0.05830.1474 0.12940.2297 0.32330.3853
Solar288 0.18360.2421 0.19800.2558 0.20660.2594 0.20690.2557
Traffic24 0.32390.3007 0.35410.3226 0.37810.3380 0.37940.3365
Weather144 0.34050.3328 0.41380.3923 0.47550.4386 0.54550.4807
ETTh24 0.21340.3046 0.24580.3301 0.28340.3576 0.33280.3969

Contact

If you have any questions or suggestions for our paper or codes, please contact us. Email: hanwen_hu@sjtu.edu.cn.

About

Recognizing Dominant Patterns for Long-term Time Series Forecasting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages