GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - UESTCht/TSAT: Transformer based model for time series prediction

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
Data/ETTm1_48/source
Data/ETTm1_48/source
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
TSAT.py
TSAT.py
 
 
dataset_TSAT_ETTm1_48.py
dataset_TSAT_ETTm1_48.py
 
 
dataset_graph.py
dataset_graph.py
 
 
main.py
main.py
 
 
readme.md
readme.md
 
 
requirements.txt
requirements.txt
 
 
utils.py
utils.py
 
 

Repository files navigation

Time Series Attention Transformer (TSAT)

Python 3.8 PyTorch 1.8

The official implementation of the Time Series Attention Transformer (TSAT).

architecture

Code

  • main.py : main TSAT model interface with training and testing
  • TSAT.py : with TSAT class implementation
  • utils.py : utility functions and dataset parameter
  • dataset_TSAT_ETTm1_48.py : generate graph from dataset ETTm1

Data Preparation

ETT dataset

Download the Electricity Transformer Temperature Dataset from https://github.com/zhouhaoyi/ETDataset. Uncompress them and move the .csv to the Data folder.

Multivariate Time series Data sets

The Electricity consumption dataset can be found on https://github.com/laiguokun/multivariate-time-series-data.

Model parameters

The parameters setting can be found in utils.py.

  • l_backcast : lengths of backcast
  • d_edge : number of IMF used
  • d_model : the time embedding dimension
  • N : number of Self_Attention_Block
  • h : number of head in Multi-head-attention
  • N_dense : number of linear layer in Sequential feed forward layers
  • n_output : number of output (lengths of forecast $\times$ number of node)
  • n_nodes : number of node (aka number of time series)
  • lambda : the initial value of the trainable lambda $\alpha_i$
  • dense_output_nonlinearity the nonlinearity function in dense output layer

Requirements

  • Python 3.8
  • PyTorch = 1.8.0 (with corresponding CUDA version)
  • Pandas = 1.4.0
  • Numpy = 1.22.2
  • PyEMD = 1.2.1

Dependencies can be installed using the following command:

pip install -r requirements.txt

Contact

If you have any questions, please feel free to contact William Ng (Email: [email protected]).

About

Transformer based model for time series prediction

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.