-
Install requirements.
pip install -r requirements.txt
-
Download data. You can download the all datasets from iTransformer: datasets. All the datasets are well pre-processed and can be used easily.
-
Train the model. We provide the experiment scripts of all benchmarks under the folder
./scripts
. -
You can use bash commands to individually run scripts in the 'scripts' folder from the command line to obtain results for individual datasets, for example, you can use the below command line to obtain the multivariate forecasting result of input-96-predict-96 on ETTh1:
bash ./scripts/96/ETTh1.sh
You can find:
The training history and results under './logs' folder.
The test results (MSE and MAE) under './test_dicts' folder.
The visualization of forecasting results under './visual' folder.
The visualization of the weight under './visual/weight' folder. PS: The method used for getting the weight follows the approach outlined in An Analysis of Linear Time Series Forecasting Models.
Several examples for better understanding the proposed Energy-based Key-Frequency Picking Block(EKPB) in the paper.
Within the storage limits of a GitHub repository, We provide training log files of tasks input-96-predict-96 on ECL, to assist readers in reproducing the results from the paper.